Check if prototype exists in hasFunction(...).

This commit is contained in:
hns 2002-07-04 18:44:51 +00:00
parent fab876e2e7
commit 47ab428371

View file

@ -395,6 +395,9 @@ public final class FesiEvaluator implements ScriptingEngine {
String protoname = app.getPrototypeName (obj);
try {
ObjectPrototype op = getPrototype (protoname);
// if this is an untyped object return false
if (op == null)
return false;
ESValue func = op.getProperty (fname, fname.hashCode());
if (func != null && func instanceof FunctionPrototype)
return true;