Wrap ContextCreated with context scope

This commit is contained in:
Cheng Zhao 2017-03-07 19:59:48 +09:00
parent e017e157ba
commit 2cbdb6bac3

View file

@ -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();