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

Unified Diff: test/mjsunit/regress/regress-4376-3.js

Issue 1304633002: Correctify instanceof and make it optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Add MIPS/MIPS64 ports. Created 5 years, 4 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
Index: test/mjsunit/regress/regress-4376-3.js
diff --git a/test/message/arrow-formal-parameters.js b/test/mjsunit/regress/regress-4376-3.js
similarity index 52%
copy from test/message/arrow-formal-parameters.js
copy to test/mjsunit/regress/regress-4376-3.js
index edc0c58053524299a9616c57a5a7be2e986cf8f3..3240cf0cd90267d2bfcc3269409a6d64a3d640e8 100644
--- a/test/message/arrow-formal-parameters.js
+++ b/test/mjsunit/regress/regress-4376-3.js
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --harmony-arrow-functions
-
-(b, a, a, d) => a
+function Foo() {}
+var x = new Foo();
+function foo() { return x instanceof Foo; }
+assertTrue(foo());
+Foo.prototype = 1;
+assertThrows(foo, TypeError);
« no previous file with comments | « test/mjsunit/regress/regress-4376-2.js ('k') | test/webkit/fast/js/object-prototype-properties-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698