Handle v8::MicrotasksScope in the main process
This commit is contained in:
parent
5826a8f9a9
commit
ee28f4fc32
7 changed files with 27 additions and 25 deletions
|
@ -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_);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue