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:
parent
19dfd14aee
commit
27bca8cec1
2 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue