Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 090a9d00e7318f05e80393dc37a72c046089a8aa..3f93db2932ecefeba0efa7b006e37bfe03bb3f30 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -6550,6 +6550,22 @@ TEST(DestructuringAssignmentPositiveTests) { |
NULL, |
}; |
RunParserSyncTest(empty_context_data, ambiguity_data, kSuccess); |
+ |
+ // v8:5201 |
+ { |
+ const char* context_data[][2] = { |
+ {"var {", "} = {};"}, |
+ {"(() => { function f({", " = false } = {}) {} })()"}, |
+ {NULL, NULL} |
+ }; |
+ |
+ const char* data[] = { |
+ "eval", |
adamk
2016/08/09 17:00:51
I think this test case belongs with the other dest
|
+ NULL, |
+ }; |
+ |
+ RunParserSyncTest(context_data, data, kSuccess); |
+ } |
} |
@@ -6715,6 +6731,25 @@ TEST(DestructuringAssignmentNegativeTests) { |
NULL}; |
RunParserSyncTest(strict_context_data, strict_data, kError); |
+ |
+ // v8:5201 |
+ { |
+ // clang-format off |
+ const char* context_data[][2] = { |
+ {"'use strict'; var {", "} = {};"}, |
+ {"(() => { 'use strict'; function a({", " = false } = {}) {} })()"}, |
+ {NULL, NULL} |
+ }; |
+ |
+ const char* data[] = { |
+ "eval", |
+ "arguments", |
+ NULL |
+ }; |
+ |
+ // clang-format on |
+ RunParserSyncTest(context_data, data, kError); |
+ } |
} |