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

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

Issue 1241613003: Properly handle missing from normalized stores with keys convertible to array indices (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/ic/ic.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-509961.js
diff --git a/test/message/arrow-param-after-rest.js b/test/mjsunit/regress/regress-509961.js
similarity index 57%
copy from test/message/arrow-param-after-rest.js
copy to test/mjsunit/regress/regress-509961.js
index 0fade6c31d3cb6c2e82fb7027628fdfae96e1962..d28bc8a268dcba150b511f02d17672989176e420 100644
--- a/test/message/arrow-param-after-rest.js
+++ b/test/mjsunit/regress/regress-509961.js
@@ -1,7 +1,10 @@
// 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 --harmony-arrow-functions
-(...x, y) => 10
+var o = { x: 0 };
+delete o.x;
+function store(o, p, v) { o[p] = v; }
+store(o, "x", 1);
+store(o, "x", 1);
+store(o, "0", 1);
« no previous file with comments | « src/ic/ic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698