Index: test/mjsunit/undetectable-compare.js |
diff --git a/test/mjsunit/undetectable-compare.js b/test/mjsunit/undetectable-compare.js |
index fbfbbe1051323d66e2fddb5d60da557e5182edea..2887f2f53bf240a9ff536d09422aee055ba29ff7 100644 |
--- a/test/mjsunit/undetectable-compare.js |
+++ b/test/mjsunit/undetectable-compare.js |
@@ -92,5 +92,15 @@ for (var i = 0; i < 5; i++) { |
} |
-assertFalse(undetectable == %GetUndetectable()); |
+assertTrue(undetectable == %GetUndetectable()); |
assertFalse(undetectable === %GetUndetectable()); |
+ |
+ |
+function test2(a, b) { |
+ assertTrue(a == b); |
+} |
+test2(1, 1); |
+test2(undetectable, undetectable); |
+for (var i = 0; i < 5; ++i) { |
+ test2(undetectable, %GetUndetectable()); |
+} |