Wrap ContextCreated with context scope
This commit is contained in:
parent
e017e157ba
commit
2cbdb6bac3
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue