Skip to content

Commit

Permalink
Fix previous commit
Browse files Browse the repository at this point in the history
GetObjectRegistry()'s signature expect object and
it should always return one
  • Loading branch information
rogerwang committed Feb 19, 2014
1 parent 6527438 commit 6039b7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/dispatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 6039b7e

Please sign in to comment.