Permalink
Browse files

Fix previous commit

GetObjectRegistry()'s signature expect object and
it should always return one
  • Loading branch information...
1 parent 6527438 commit 6039b7efbc5fcdd54d7a114d3d23619fc2b3b99f @rogerwang rogerwang committed Feb 19, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/api/dispatcher.cc
View
@@ -116,8 +116,8 @@ v8::Handle<v8::Object> Dispatcher::GetObjectRegistry() {
v8::Handle<v8::Value> registry =
node::g_context->Global()->Get(v8_str("__nwObjectsRegistry"));
node::g_context->Exit();
- if (registry->IsNull() || registry->IsUndefined())
- return v8::Undefined();
+ // if (registry->IsNull() || registry->IsUndefined())
+ // return v8::Undefined();
return registry->ToObject();
}

0 comments on commit 6039b7e

Please sign in to comment.