Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index a36bd92763270a4b839b43d5e5a9ead34f645b7b..b6294ea1d95430acba0792eed8446bf736aa668a 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -1840,6 +1840,13 @@ TEST(NoErrorsEvalAndArgumentsStrict) { |
V(yield) |
+#define LIMITED_FUTURE_STRICT_RESERVED_WORDS(V) \ |
+ V(implements) \ |
+ V(let) \ |
+ V(static) \ |
+ V(yield) |
+ |
+ |
#define FUTURE_STRICT_RESERVED_STATEMENTS(NAME) \ |
"var " #NAME ";", \ |
"var foo, " #NAME ";", \ |
@@ -1861,14 +1868,13 @@ TEST(ErrorsFutureStrictReservedWords) { |
// it's ok to use future strict reserved words as identifiers. With the strict |
// mode, it isn't. |
const char* context_data[][2] = { |
- { "\"use strict\";", "" }, |
{ "function test_func() {\"use strict\"; ", "}"}, |
{ "() => { \"use strict\"; ", "}" }, |
{ NULL, NULL } |
}; |
const char* statement_data[] { |
- FUTURE_STRICT_RESERVED_WORDS(FUTURE_STRICT_RESERVED_STATEMENTS) |
+ LIMITED_FUTURE_STRICT_RESERVED_WORDS(FUTURE_STRICT_RESERVED_STATEMENTS) |
NULL |
}; |
@@ -1883,6 +1889,9 @@ TEST(ErrorsFutureStrictReservedWords) { |
} |
+#undef LIMITED_FUTURE_STRICT_RESERVED_WORDS |
+ |
+ |
TEST(NoErrorsFutureStrictReservedWords) { |
const char* context_data[][2] = { |
{ "", "" }, |