Skip to content

Commit bad4dd3

Browse files
committed
Fix previous commit
GetObjectRegistry()'s signature expect object and it should always return one
1 parent 5d7ca20 commit bad4dd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/dispatcher.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ v8::Handle<v8::Object> Dispatcher::GetObjectRegistry() {
108108
v8::Handle<v8::Value> registry =
109109
node::g_context->Global()->Get(v8_str("__nwObjectsRegistry"));
110110
node::g_context->Exit();
111-
if (registry->IsNull() || registry->IsUndefined())
112-
return v8::Undefined();
111+
// if (registry->IsNull() || registry->IsUndefined())
112+
// return v8::Undefined();
113113
return registry->ToObject();
114114
}
115115

0 commit comments

Comments
 (0)