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

Unified Diff: test/mjsunit/harmony/regress/regress-4400.js

Issue 1350913005: Don't crash when preparsing destructured arguments (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Always add counts Created 5 years, 3 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/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/regress/regress-4400.js
diff --git a/test/message/destructuring-modify-const.js b/test/mjsunit/harmony/regress/regress-4400.js
similarity index 60%
copy from test/message/destructuring-modify-const.js
copy to test/mjsunit/harmony/regress/regress-4400.js
index cabd924b37ea9f178259f4c979c3b3268920c713..7c42e4f557ad098c4778841285a7075498ba1bf7 100644
--- a/test/message/destructuring-modify-const.js
+++ b/test/mjsunit/harmony/regress/regress-4400.js
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --harmony-destructuring
-'use strict';
+// Flags: --harmony-default-parameters --min-preparse-length=0
-const { x : x, y : y } = { x : 1, y : 2 };
-x++;
+function borked(a = [], b = {}, c) {}
+borked();
« no previous file with comments | « src/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698