Create new uv loop in each worker

This commit is contained in:
Cheng Zhao 2017-03-10 15:22:25 +09:00
parent 69df934710
commit d2f185bea5
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ WebWorkerObserver::~WebWorkerObserver() {
void WebWorkerObserver::ContextCreated(v8::Local<v8::Context> context) {
v8::Context::Scope context_scope(context);
node_bindings_->Initialize();
// Start the embed thread.
node_bindings_->PrepareMessageLoop();
// Setup node environment for each window.