We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8024e44 commit cd80a2aCopy full SHA for cd80a2a
runtime/src/main/jni/MetadataNode.cpp
@@ -986,6 +986,10 @@ void MetadataNode::InterfaceConstructorCallback(const v8::FunctionCallbackInfo<v
986
987
if (info.Length() == 1)
988
{
989
+ if (!info[0]->IsObject())
990
+ {
991
+ throw NativeScriptException(string("First argument must be implementation object"));
992
+ }
993
implementationObject = info[0]->ToObject();
994
}
995
else if (info.Length() == 2)
0 commit comments