mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Wrap ContextCreated with context scope
This commit is contained in:
@@ -38,6 +38,8 @@ WebWorkerObserver::~WebWorkerObserver() {
|
||||
}
|
||||
|
||||
void WebWorkerObserver::ContextCreated(v8::Local<v8::Context> context) {
|
||||
v8::Context::Scope context_scope(context);
|
||||
|
||||
node_bindings_->Initialize();
|
||||
node_bindings_->PrepareMessageLoop();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user