Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: test/mjsunit/undetectable-compare.js

Issue 1735863004: [ic] Unify undetectable abstract equality comparison. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
+}
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698