mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
REVIEW: destroy process singleton on sequence where IO is allowed
This commit is contained in:
@@ -18,6 +18,8 @@ namespace atom {
|
||||
// Manage the V8 isolate and context automatically.
|
||||
class JavascriptEnvironment {
|
||||
public:
|
||||
static void Initialize();
|
||||
|
||||
JavascriptEnvironment();
|
||||
|
||||
void OnMessageLoopCreated();
|
||||
@@ -30,12 +32,6 @@ class JavascriptEnvironment {
|
||||
}
|
||||
|
||||
private:
|
||||
bool Initialize();
|
||||
|
||||
// Leaked on exit.
|
||||
node::NodePlatform* platform_;
|
||||
|
||||
bool initialized_;
|
||||
gin::IsolateHolder isolate_holder_;
|
||||
v8::Isolate* isolate_;
|
||||
v8::Isolate::Scope isolate_scope_;
|
||||
|
||||
Reference in New Issue
Block a user