mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
For == use .equals after unwrapping.
This commit is contained in:
parent
07b81a65d3
commit
0298ab90eb
@ -1582,11 +1582,8 @@ public class ScriptRuntime {
|
||||
if (typeX == ScriptableClass) {
|
||||
if (x == y)
|
||||
return true;
|
||||
if (x instanceof Wrapper &&
|
||||
y instanceof Wrapper)
|
||||
{
|
||||
return ((Wrapper) x).unwrap() ==
|
||||
((Wrapper) y).unwrap();
|
||||
if (x instanceof Wrapper && y instanceof Wrapper) {
|
||||
return ((Wrapper) x).unwrap().equals(((Wrapper) y).unwrap());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -1582,11 +1582,8 @@ public class ScriptRuntime {
|
||||
if (typeX == ScriptableClass) {
|
||||
if (x == y)
|
||||
return true;
|
||||
if (x instanceof Wrapper &&
|
||||
y instanceof Wrapper)
|
||||
{
|
||||
return ((Wrapper) x).unwrap() ==
|
||||
((Wrapper) y).unwrap();
|
||||
if (x instanceof Wrapper && y instanceof Wrapper) {
|
||||
return ((Wrapper) x).unwrap().equals(((Wrapper) y).unwrap());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user