Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 782b953ea9763edf0dadbc32511d32a6deef0463..9113012df09257f7903e55c9711b211400eef3c8 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -1366,13 +1366,9 @@ function ObjectIsExtensible(obj) { |
} |
-// Harmony egal. |
+// ECMA-262, Edition 6, section 19.1.2.10 |
function ObjectIs(obj1, obj2) { |
- if (obj1 === obj2) { |
- return (obj1 !== 0) || (1 / obj1 === 1 / obj2); |
- } else { |
- return (obj1 !== obj1) && (obj2 !== obj2); |
- } |
+ return SameValue(obj1, obj2); |
} |