Changed FESI.Interpreter.EcmaScriptEvaluateVisitor to use .equals instead of

== in equal method for helma.framework.core.ESNode objects, since different  
  wrappers may wrap the same object.
This commit is contained in:
hns 2001-04-19 12:12:28 +00:00
parent 19dfd14aee
commit 27bca8cec1
2 changed files with 11 additions and 0 deletions

View file

@ -248,6 +248,12 @@ public class EcmaScriptEvaluateVisitor
return b1==b2;
}
// ESNode wrappers must be checked with equals() because
// it's possible that different wrappers wrap the same node!
if (v1 instanceof helma.framework.core.ESNode) {
return v1.equals (v2);
}
return v1 == v2;
}