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

@ -15,3 +15,8 @@ Changes to standard FESI distribution (1.1.4) for Hop
ESNumber. ESNumber.
- Made EcmaScriptFunctionVisitor recognise thisObj - Functions are now assigned - Made EcmaScriptFunctionVisitor recognise thisObj - Functions are now assigned
to the current thisObject. to the current thisObject.
- Added setPrototype() method to FESI.Data.ESObject to be able to manipulate
the prototype after the object was created.
- 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.

View file

@ -248,6 +248,12 @@ public class EcmaScriptEvaluateVisitor
return b1==b2; 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; return v1 == v2;
} }