only call internal functions if they are actually defined
for the object we're calling them on.
This commit is contained in:
parent
d4072eed2b
commit
4a83d1390a
1 changed files with 3 additions and 1 deletions
|
@ -489,7 +489,9 @@ public class RequestEvaluator implements Runnable {
|
|||
current = esu;
|
||||
}
|
||||
}
|
||||
esresult = current.doIndirectCall (evaluator, current, method, new ESValue[0]);
|
||||
// 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]);
|
||||
commitTransaction ();
|
||||
|
||||
} catch (Throwable wrong) {
|
||||
|
|
Loading…
Add table
Reference in a new issue