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

Unified Diff: test/mjsunit/es6/regress/regress-594084.js

Issue 1864553002: [destructuring] don't attempt to visit contents of FunctionLiterals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: and add a comment explaining why Created 4 years, 8 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/parsing/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/es6/regress/regress-594084.js
diff --git a/test/mjsunit/regress/regress-4659.js b/test/mjsunit/es6/regress/regress-594084.js
similarity index 50%
copy from test/mjsunit/regress/regress-4659.js
copy to test/mjsunit/es6/regress/regress-594084.js
index ff436bec1b07d6a708ddd0a0c454ada3c353985c..4953cc9bb61cef55aaee15a8b6caa739c3416827 100644
--- a/test/mjsunit/regress/regress-4659.js
+++ b/test/mjsunit/es6/regress/regress-594084.js
@@ -2,11 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
-// Flags: --harmony-function-name
-
-var obj = {
- get longerName(){
- return 42;
+// Flags: --lazy --min-preparse-length=0
+(function() {
+ function CRASH(defaultParameter =
+ (function() { function functionDeclaration() { return 0; } }())) {
}
-};
-assertEquals(42, obj.longerName);
+})();
« no previous file with comments | « src/parsing/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698