Force running uv loop under a handle scope. Fixed #13.
This commit is contained in:
parent
2bb33d8b32
commit
d265121ed0
2 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue