Revert to old object identity for equality per ECMA.

git-svn-id: svn://10.0.0.236/trunk@84541 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nboyd%atg.com
2001-01-08 01:03:23 +00:00
parent 257b169fe6
commit e6a3f16701
2 changed files with 10 additions and 4 deletions

View File

@@ -1582,8 +1582,11 @@ public class ScriptRuntime {
if (typeX == ScriptableClass) {
if (x == y)
return true;
if (x instanceof Wrapper && y instanceof Wrapper) {
return ((Wrapper) x).unwrap().equals(((Wrapper) y).unwrap());
if (x instanceof Wrapper &&
y instanceof Wrapper)
{
return ((Wrapper) x).unwrap() ==
((Wrapper) y).unwrap();
}
return false;
}

View File

@@ -1582,8 +1582,11 @@ public class ScriptRuntime {
if (typeX == ScriptableClass) {
if (x == y)
return true;
if (x instanceof Wrapper && y instanceof Wrapper) {
return ((Wrapper) x).unwrap().equals(((Wrapper) y).unwrap());
if (x instanceof Wrapper &&
y instanceof Wrapper)
{
return ((Wrapper) x).unwrap() ==
((Wrapper) y).unwrap();
}
return false;
}