From d265121ed06417b0946aa36d39ccd93bdeb70baf Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 22 May 2013 09:13:32 +0800 Subject: [PATCH] Force running uv loop under a handle scope. Fixed #13. --- common/node_bindings_mac.mm | 1 + vendor/brightray | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/node_bindings_mac.mm b/common/node_bindings_mac.mm index 9e984e17ea5c..0c15387ced23 100644 --- a/common/node_bindings_mac.mm +++ b/common/node_bindings_mac.mm @@ -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. diff --git a/vendor/brightray b/vendor/brightray index 932b41d6b0ab..05db4299da03 160000 --- a/vendor/brightray +++ b/vendor/brightray @@ -1 +1 @@ -Subproject commit 932b41d6b0abd87fa576e41e70261b15943c6e83 +Subproject commit 05db4299da03bad186bf394761843c5dcc8a8203