Handle v8::MicrotasksScope in the main process

This commit is contained in:
Cheng Zhao 2016-06-24 14:45:31 +09:00
parent 5826a8f9a9
commit ee28f4fc32
7 changed files with 27 additions and 25 deletions

View file

@ -14,6 +14,9 @@ class JavascriptEnvironment {
public:
JavascriptEnvironment();
void OnMessageLoopCreated();
void OnMessageLoopDestroying();
v8::Isolate* isolate() const { return isolate_; }
v8::Local<v8::Context> context() const {
return v8::Local<v8::Context>::New(isolate_, context_);