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

Unified Diff: test/mjsunit/regress/regress-arguments-slice.js

Issue 1436813002: Fix Array.prototype.slice with arguments object with negative length. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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.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-arguments-slice.js
diff --git a/test/message/arrow-bare-rest-param.js b/test/mjsunit/regress/regress-arguments-slice.js
similarity index 63%
copy from test/message/arrow-bare-rest-param.js
copy to test/mjsunit/regress/regress-arguments-slice.js
index bd5761f4e8849cba109c8d111f6526f9107c736e..f7cd8c6ec8c27f867353c745754ac3e37ed7ac3f 100644
--- a/test/message/arrow-bare-rest-param.js
+++ b/test/mjsunit/regress/regress-arguments-slice.js
@@ -1,7 +1,8 @@
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-//
-// Flags: --harmony-rest-parameters
-...x => 10
+function f() { return arguments; }
+var o = f();
+o.length = -100;
+Array.prototype.slice.call(o);
« no previous file with comments | « src/builtins.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698