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

Unified Diff: test/cctest/test-parsing.cc

Issue 1488043002: [parser] treat MethodDefinitions in ObjectPatterns as SyntaxErrors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixups Created 5 years 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/preparser.h ('k') | test/mjsunit/harmony/regress/regress-4585.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index 522c95d5b36f13c2cea2af654601dd342554374f..b9251e9b09afc1461f58a244fad9d278e91e34d3 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -6715,6 +6715,10 @@ TEST(DestructuringNegativeTests) {
"{ x : 'foo' }",
"{ x : /foo/ }",
"{ x : `foo` }",
+ "{ get a() {} }",
+ "{ set a() {} }",
+ "{ method() {} }",
+ "{ *method() {} }",
NULL};
// clang-format on
RunParserSyncTest(context_data, data, kError, NULL, 0, always_flags,
« no previous file with comments | « src/parsing/preparser.h ('k') | test/mjsunit/harmony/regress/regress-4585.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698