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

Unified Diff: test/mjsunit/es7/regress/regress-633883.js

Issue 2207903002: [builtins] fix mapcheck in Array.includes fast-case when searching for String (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/builtins/builtins-array.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es7/regress/regress-633883.js
diff --git a/test/message/for-of-throw-in-body.js b/test/mjsunit/es7/regress/regress-633883.js
similarity index 59%
copy from test/message/for-of-throw-in-body.js
copy to test/mjsunit/es7/regress/regress-633883.js
index 38b27f38632520e292f66b7ab451df00c2c03b68..d3a4958da49ae774c378a4bb1d874047b5a65bec 100644
--- a/test/message/for-of-throw-in-body.js
+++ b/test/mjsunit/es7/regress/regress-633883.js
@@ -2,4 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-for (var x of [1, 2, 3]) { throw 42 }
+v5 = new Array();
+v17 = encodeURIComponent(v5);
+v19 = isFinite();
+v34 = new Array(v19);
+v47 = v34.includes(v17);
« no previous file with comments | « src/builtins/builtins-array.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698