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

Unified Diff: test/mjsunit/regress/regress-5085.js

Issue 2041103007: [es6] Fix prototype chain walk for instanceof. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-5085.js
diff --git a/test/mjsunit/regress/regress-crbug-476477-2.js b/test/mjsunit/regress/regress-5085.js
similarity index 69%
copy from test/mjsunit/regress/regress-crbug-476477-2.js
copy to test/mjsunit/regress/regress-5085.js
index 4dbb41b7d4ced16b488f6e1d00f184446bd41368..0ed034dc2d09e97827e2b4881570d60be2b5072b 100644
--- a/test/mjsunit/regress/regress-crbug-476477-2.js
+++ b/test/mjsunit/regress/regress-5085.js
@@ -5,12 +5,10 @@
// Flags: --allow-natives-syntax
function foo(x) {
- var s = Math.floor(x / 3600);
- Math.floor(s);
- return s % 24;
+ return x instanceof Proxy;
}
-foo(12345678);
-foo(12345678);
+assertFalse(foo({}));
+assertFalse(foo({}));
%OptimizeFunctionOnNextCall(foo);
-foo(12345678);
+assertFalse(foo({}));
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698