From 244e7ba77993c14f499482c3b52031b9528ef74b Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 30 Aug 2001 20:09:20 +0000 Subject: [PATCH] Repaired brain-dead bug where ESValue was checked for instance of IPathElement instead of ESNode --- src/FESI/Interpreter/EcmaScriptEvaluateVisitor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FESI/Interpreter/EcmaScriptEvaluateVisitor.java b/src/FESI/Interpreter/EcmaScriptEvaluateVisitor.java index db8bc191..4a0d7959 100644 --- a/src/FESI/Interpreter/EcmaScriptEvaluateVisitor.java +++ b/src/FESI/Interpreter/EcmaScriptEvaluateVisitor.java @@ -250,7 +250,8 @@ public class EcmaScriptEvaluateVisitor // ESNode wrappers must be checked with equals() because // it's possible that different wrappers wrap the same node! - if (v1 instanceof helma.framework.IPathElement) { + if (v1 instanceof helma.scripting.fesi.ESNode || + v1 instanceof helma.scripting.fesi.ESGenericObject) { return v1.equals (v2); } @@ -1363,3 +1364,4 @@ public class EcmaScriptEvaluateVisitor } +