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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user