Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index dc4ddb0af63ae30ed9d1b3eae11a8bc3edc4178a..775b3eeab361d556b01be7f7b72fde152a454dcf 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -1523,7 +1523,7 @@ void SetParserFlags(i::ParserBase<Traits>* parser, |
flags.Contains(kAllowHarmonyRestParameters)); |
parser->set_allow_harmony_sloppy(flags.Contains(kAllowHarmonySloppy)); |
parser->set_allow_harmony_sloppy_let(flags.Contains(kAllowHarmonySloppyLet)); |
- parser->set_allow_harmony_destructuring( |
+ parser->set_allow_harmony_destructuring_bind( |
flags.Contains(kAllowHarmonyDestructuring)); |
parser->set_allow_strong_mode(flags.Contains(kAllowStrongMode)); |
parser->set_allow_legacy_const(!flags.Contains(kNoLegacyConst)); |
@@ -6546,7 +6546,7 @@ TEST(StrongModeFreeVariablesNotDeclared) { |
TEST(DestructuringPositiveTests) { |
- i::FLAG_harmony_destructuring = true; |
+ i::FLAG_harmony_destructuring_bind = true; |
const char* context_data[][2] = {{"'use strict'; let ", " = {};"}, |
{"var ", " = {};"}, |
@@ -6605,7 +6605,7 @@ TEST(DestructuringPositiveTests) { |
TEST(DestructuringNegativeTests) { |
- i::FLAG_harmony_destructuring = true; |
+ i::FLAG_harmony_destructuring_bind = true; |
static const ParserFlag always_flags[] = {kAllowHarmonyDestructuring}; |
{ // All modes. |
@@ -6776,7 +6776,7 @@ TEST(DestructuringNegativeTests) { |
TEST(DestructuringDisallowPatternsInForVarIn) { |
- i::FLAG_harmony_destructuring = true; |
+ i::FLAG_harmony_destructuring_bind = true; |
static const ParserFlag always_flags[] = {kAllowHarmonyDestructuring}; |
const char* context_data[][2] = { |
{"", ""}, {"function f() {", "}"}, {NULL, NULL}}; |
@@ -6800,7 +6800,7 @@ TEST(DestructuringDisallowPatternsInForVarIn) { |
TEST(DestructuringDuplicateParams) { |
- i::FLAG_harmony_destructuring = true; |
+ i::FLAG_harmony_destructuring_bind = true; |
static const ParserFlag always_flags[] = {kAllowHarmonyDestructuring}; |
const char* context_data[][2] = {{"'use strict';", ""}, |
{"function outer() { 'use strict';", "}"}, |
@@ -6826,7 +6826,7 @@ TEST(DestructuringDuplicateParams) { |
TEST(DestructuringDuplicateParamsSloppy) { |
- i::FLAG_harmony_destructuring = true; |
+ i::FLAG_harmony_destructuring_bind = true; |
static const ParserFlag always_flags[] = {kAllowHarmonyDestructuring}; |
const char* context_data[][2] = { |
{"", ""}, {"function outer() {", "}"}, {nullptr, nullptr}}; |
@@ -6847,7 +6847,7 @@ TEST(DestructuringDuplicateParamsSloppy) { |
TEST(DestructuringDisallowPatternsInSingleParamArrows) { |
- i::FLAG_harmony_destructuring = true; |
+ i::FLAG_harmony_destructuring_bind = true; |
static const ParserFlag always_flags[] = {kAllowHarmonyDestructuring}; |
const char* context_data[][2] = {{"'use strict';", ""}, |
{"function outer() { 'use strict';", "}"}, |
@@ -6867,7 +6867,7 @@ TEST(DestructuringDisallowPatternsInSingleParamArrows) { |
TEST(DestructuringDisallowPatternsInRestParams) { |
- i::FLAG_harmony_destructuring = true; |
+ i::FLAG_harmony_destructuring_bind = true; |
i::FLAG_harmony_rest_parameters = true; |
static const ParserFlag always_flags[] = {kAllowHarmonyRestParameters, |
kAllowHarmonyDestructuring}; |