fix: missing handlescopes in event emission (#23140)

* fix: missing event emitter handlescopes

* refactor: add static getter to js env
This commit is contained in:
shelley vohr 2020-04-27 11:38:43 -07:00 committed by GitHub
parent 9bb8e43c9b
commit ac5c30a707
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 0 deletions

View file

@ -34,6 +34,8 @@ class JavascriptEnvironment {
return v8::Local<v8::Context>::New(isolate_, context_);
}
static v8::Isolate* GetIsolate();
private:
v8::Isolate* Initialize(uv_loop_t* event_loop);
// Leaked on exit.