| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index 3d8fc39fcc2d26c828ecc393217c73d1ca33a4eb..5de0ebae2afc02a64cedef39451ef4a140580509 100644
|
| --- a/test/cctest/test-parsing.cc
|
| +++ b/test/cctest/test-parsing.cc
|
| @@ -1391,7 +1391,7 @@ void RunParserSyncTest(const char* context_data[][2],
|
|
|
| static const ParserFlag flags[] = {
|
| kAllowLazy, kAllowHarmonyScoping, kAllowModules, kAllowGenerators,
|
| - kAllowForOf
|
| + kAllowForOf, kAllowNativesSyntax
|
| };
|
| for (int i = 0; context_data[i][0] != NULL; ++i) {
|
| for (int j = 0; statement_data[j] != NULL; ++j) {
|
| @@ -2046,3 +2046,20 @@ TEST(NoErrorsRegexpLiteral) {
|
|
|
| RunParserSyncTest(context_data, statement_data, kSuccess);
|
| }
|
| +
|
| +
|
| +TEST(Intrinsics) {
|
| + const char* context_data[][2] = {
|
| + {"", ""},
|
| + { NULL, NULL }
|
| + };
|
| +
|
| + const char* statement_data[] = {
|
| + "%someintrinsic(arg)",
|
| + NULL
|
| + };
|
| +
|
| + // Parsing will fail or succeed depending on whether we allow natives syntax
|
| + // or not.
|
| + RunParserSyncTest(context_data, statement_data, kSuccessOrError);
|
| +}
|
|
|