Force running uv loop under a handle scope. Fixed #13.

This commit is contained in:
Cheng Zhao 2013-05-22 09:13:32 +08:00
parent 2bb33d8b32
commit d265121ed0
2 changed files with 2 additions and 1 deletions

View file

@ -64,6 +64,7 @@ void NodeBindingsMac::UvRunOnce() {
DCHECK(!is_browser_ || BrowserThread::CurrentlyOn(BrowserThread::UI));
// Enter node context while dealing with uv events.
v8::HandleScope scope;
v8::Context::Scope context_scope(node::g_context);
// Deal with uv events.

2
vendor/brightray vendored

@ -1 +1 @@
Subproject commit 932b41d6b0abd87fa576e41e70261b15943c6e83
Subproject commit 05db4299da03bad186bf394761843c5dcc8a8203