only call internal functions if they are actually defined

for the object we're calling them on.
This commit is contained in:
hns 2001-08-08 10:17:29 +00:00
parent d4072eed2b
commit 4a83d1390a

View file

@ -489,6 +489,8 @@ public class RequestEvaluator implements Runnable {
current = esu; current = esu;
} }
} }
// call internal functions only if they're specified
if (current.getProperty (method, method.hashCode()) != ESUndefined.theUndefined)
esresult = current.doIndirectCall (evaluator, current, method, new ESValue[0]); esresult = current.doIndirectCall (evaluator, current, method, new ESValue[0]);
commitTransaction (); commitTransaction ();