Resolves issue #115.
This commit is contained in:
parent
91d052af48
commit
4d92cec456
1 changed files with 8 additions and 1 deletions
|
@ -176,7 +176,14 @@ public class HopObjectCtor extends FunctionObject {
|
|||
} catch (Exception x) {
|
||||
return null;
|
||||
}
|
||||
return node == null ? null : Context.toObject(node, this);
|
||||
|
||||
if (node == null
|
||||
|| !HopObjectCtor.this.core.app.getPrototype(node)
|
||||
.isInstanceOf(type)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return Context.toObject(node, this);
|
||||
}
|
||||
|
||||
public int getArity() {
|
||||
|
|
Loading…
Add table
Reference in a new issue