| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index a3ee6bea045ad4c9a788922a1ed833f44b9c291e..f0a5b8ba611baf15ceaeec04e4b0ddfae619d112 100644
|
| --- a/test/cctest/test-parsing.cc
|
| +++ b/test/cctest/test-parsing.cc
|
| @@ -1275,7 +1275,6 @@ enum ParserFlag {
|
| kAllowNatives,
|
| kAllowHarmonyFunctionSent,
|
| kAllowHarmonyRestrictiveGenerators,
|
| - kAllowHarmonyTrailingCommas,
|
| kAllowHarmonyClassFields,
|
| kAllowHarmonyObjectSpread,
|
| };
|
| @@ -1291,7 +1290,6 @@ void SetGlobalFlags(i::EnumSet<ParserFlag> flags) {
|
| i::FLAG_harmony_function_sent = flags.Contains(kAllowHarmonyFunctionSent);
|
| i::FLAG_harmony_restrictive_generators =
|
| flags.Contains(kAllowHarmonyRestrictiveGenerators);
|
| - i::FLAG_harmony_trailing_commas = flags.Contains(kAllowHarmonyTrailingCommas);
|
| i::FLAG_harmony_class_fields = flags.Contains(kAllowHarmonyClassFields);
|
| i::FLAG_harmony_object_spread = flags.Contains(kAllowHarmonyObjectSpread);
|
| }
|
| @@ -1302,8 +1300,6 @@ void SetParserFlags(i::PreParser* parser, i::EnumSet<ParserFlag> flags) {
|
| flags.Contains(kAllowHarmonyFunctionSent));
|
| parser->set_allow_harmony_restrictive_generators(
|
| flags.Contains(kAllowHarmonyRestrictiveGenerators));
|
| - parser->set_allow_harmony_trailing_commas(
|
| - flags.Contains(kAllowHarmonyTrailingCommas));
|
| parser->set_allow_harmony_class_fields(
|
| flags.Contains(kAllowHarmonyClassFields));
|
| parser->set_allow_harmony_object_spread(
|
| @@ -8432,9 +8428,7 @@ TEST(TrailingCommasInParameters) {
|
| };
|
| // clang-format on
|
|
|
| - static const ParserFlag always_flags[] = {kAllowHarmonyTrailingCommas};
|
| - RunParserSyncTest(context_data, data, kSuccess, NULL, 0, always_flags,
|
| - arraysize(always_flags));
|
| + RunParserSyncTest(context_data, data, kSuccess);
|
| }
|
|
|
| TEST(TrailingCommasInParametersErrors) {
|
| @@ -8497,9 +8491,7 @@ TEST(TrailingCommasInParametersErrors) {
|
| };
|
| // clang-format on
|
|
|
| - static const ParserFlag always_flags[] = {kAllowHarmonyTrailingCommas};
|
| - RunParserSyncTest(context_data, data, kError, NULL, 0, always_flags,
|
| - arraysize(always_flags));
|
| + RunParserSyncTest(context_data, data, kError);
|
| }
|
|
|
| TEST(ArgumentsRedeclaration) {
|
|
|