Commit b7726c44 authored by adamk's avatar adamk Committed by Commit bot

Delete --harmony-computed-property-names flag

It was shipped in V8 4.4.

Review URL: https://codereview.chromium.org/1273543002

Cr-Commit-Position: refs/heads/master@{#30038}
parent eeb1149d
...@@ -1844,7 +1844,6 @@ EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) ...@@ -1844,7 +1844,6 @@ EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring)
EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy)
EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_let) EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_let)
EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps)
EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names)
EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters)
EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect)
EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls)
...@@ -1880,7 +1879,6 @@ EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) ...@@ -1880,7 +1879,6 @@ EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring)
...@@ -2564,7 +2562,6 @@ bool Genesis::InstallExperimentalNatives() { ...@@ -2564,7 +2562,6 @@ bool Genesis::InstallExperimentalNatives() {
static const char* harmony_sloppy_natives[] = {nullptr}; static const char* harmony_sloppy_natives[] = {nullptr};
static const char* harmony_sloppy_let_natives[] = {nullptr}; static const char* harmony_sloppy_let_natives[] = {nullptr};
static const char* harmony_unicode_regexps_natives[] = {nullptr}; static const char* harmony_unicode_regexps_natives[] = {nullptr};
static const char* harmony_computed_property_names_natives[] = {nullptr};
static const char* harmony_rest_parameters_natives[] = {nullptr}; static const char* harmony_rest_parameters_natives[] = {nullptr};
static const char* harmony_reflect_natives[] = {"native harmony-reflect.js", static const char* harmony_reflect_natives[] = {"native harmony-reflect.js",
nullptr}; nullptr};
......
...@@ -208,7 +208,6 @@ DEFINE_BOOL(legacy_const, true, "legacy semantics for const in sloppy mode") ...@@ -208,7 +208,6 @@ DEFINE_BOOL(legacy_const, true, "legacy semantics for const in sloppy mode")
// Features that are shipping (turned on by default, but internal flag remains). // Features that are shipping (turned on by default, but internal flag remains).
#define HARMONY_SHIPPING(V) \ #define HARMONY_SHIPPING(V) \
V(harmony_arrow_functions, "harmony arrow functions") \ V(harmony_arrow_functions, "harmony arrow functions") \
V(harmony_computed_property_names, "harmony computed property names") \
V(harmony_new_target, "harmony new.target") \ V(harmony_new_target, "harmony new.target") \
V(harmony_object_observe, "harmony Object.observe") \ V(harmony_object_observe, "harmony Object.observe") \
V(harmony_spreadcalls, "harmony spread-calls") \ V(harmony_spreadcalls, "harmony spread-calls") \
......
...@@ -913,8 +913,6 @@ Parser::Parser(ParseInfo* info) ...@@ -913,8 +913,6 @@ Parser::Parser(ParseInfo* info)
set_allow_harmony_arrow_functions(FLAG_harmony_arrow_functions); set_allow_harmony_arrow_functions(FLAG_harmony_arrow_functions);
set_allow_harmony_sloppy(FLAG_harmony_sloppy); set_allow_harmony_sloppy(FLAG_harmony_sloppy);
set_allow_harmony_sloppy_let(FLAG_harmony_sloppy_let); set_allow_harmony_sloppy_let(FLAG_harmony_sloppy_let);
set_allow_harmony_computed_property_names(
FLAG_harmony_computed_property_names);
set_allow_harmony_rest_parameters(FLAG_harmony_rest_parameters); set_allow_harmony_rest_parameters(FLAG_harmony_rest_parameters);
set_allow_harmony_spreadcalls(FLAG_harmony_spreadcalls); set_allow_harmony_spreadcalls(FLAG_harmony_spreadcalls);
set_allow_harmony_destructuring(FLAG_harmony_destructuring); set_allow_harmony_destructuring(FLAG_harmony_destructuring);
...@@ -4492,7 +4490,6 @@ PreParser::PreParseResult Parser::ParseLazyFunctionBodyWithPreParser( ...@@ -4492,7 +4490,6 @@ PreParser::PreParseResult Parser::ParseLazyFunctionBodyWithPreParser(
SET_ALLOW(harmony_arrow_functions); SET_ALLOW(harmony_arrow_functions);
SET_ALLOW(harmony_sloppy); SET_ALLOW(harmony_sloppy);
SET_ALLOW(harmony_sloppy_let); SET_ALLOW(harmony_sloppy_let);
SET_ALLOW(harmony_computed_property_names);
SET_ALLOW(harmony_rest_parameters); SET_ALLOW(harmony_rest_parameters);
SET_ALLOW(harmony_spreadcalls); SET_ALLOW(harmony_spreadcalls);
SET_ALLOW(harmony_destructuring); SET_ALLOW(harmony_destructuring);
......
...@@ -111,7 +111,6 @@ class ParserBase : public Traits { ...@@ -111,7 +111,6 @@ class ParserBase : public Traits {
allow_harmony_arrow_functions_(false), allow_harmony_arrow_functions_(false),
allow_harmony_sloppy_(false), allow_harmony_sloppy_(false),
allow_harmony_sloppy_let_(false), allow_harmony_sloppy_let_(false),
allow_harmony_computed_property_names_(false),
allow_harmony_rest_parameters_(false), allow_harmony_rest_parameters_(false),
allow_harmony_spreadcalls_(false), allow_harmony_spreadcalls_(false),
allow_harmony_destructuring_(false), allow_harmony_destructuring_(false),
...@@ -129,7 +128,6 @@ class ParserBase : public Traits { ...@@ -129,7 +128,6 @@ class ParserBase : public Traits {
ALLOW_ACCESSORS(harmony_arrow_functions); ALLOW_ACCESSORS(harmony_arrow_functions);
ALLOW_ACCESSORS(harmony_sloppy); ALLOW_ACCESSORS(harmony_sloppy);
ALLOW_ACCESSORS(harmony_sloppy_let); ALLOW_ACCESSORS(harmony_sloppy_let);
ALLOW_ACCESSORS(harmony_computed_property_names);
ALLOW_ACCESSORS(harmony_rest_parameters); ALLOW_ACCESSORS(harmony_rest_parameters);
ALLOW_ACCESSORS(harmony_spreadcalls); ALLOW_ACCESSORS(harmony_spreadcalls);
ALLOW_ACCESSORS(harmony_destructuring); ALLOW_ACCESSORS(harmony_destructuring);
...@@ -803,7 +801,6 @@ class ParserBase : public Traits { ...@@ -803,7 +801,6 @@ class ParserBase : public Traits {
bool allow_harmony_arrow_functions_; bool allow_harmony_arrow_functions_;
bool allow_harmony_sloppy_; bool allow_harmony_sloppy_;
bool allow_harmony_sloppy_let_; bool allow_harmony_sloppy_let_;
bool allow_harmony_computed_property_names_;
bool allow_harmony_rest_parameters_; bool allow_harmony_rest_parameters_;
bool allow_harmony_spreadcalls_; bool allow_harmony_spreadcalls_;
bool allow_harmony_destructuring_; bool allow_harmony_destructuring_;
...@@ -2503,19 +2500,17 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParsePropertyName( ...@@ -2503,19 +2500,17 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParsePropertyName(
*name = this->GetNumberAsSymbol(scanner()); *name = this->GetNumberAsSymbol(scanner());
break; break;
case Token::LBRACK: case Token::LBRACK: {
if (allow_harmony_computed_property_names_) { *is_computed_name = true;
*is_computed_name = true; Consume(Token::LBRACK);
Consume(Token::LBRACK); ExpressionClassifier computed_name_classifier;
ExpressionClassifier computed_name_classifier; ExpressionT expression =
ExpressionT expression = ParseAssignmentExpression( ParseAssignmentExpression(true, &computed_name_classifier, CHECK_OK);
true, &computed_name_classifier, CHECK_OK); classifier->AccumulateReclassifyingAsPattern(computed_name_classifier);
classifier->AccumulateReclassifyingAsPattern(computed_name_classifier); Expect(Token::RBRACK, CHECK_OK);
Expect(Token::RBRACK, CHECK_OK); return expression;
return expression; }
}
// Fall through.
case Token::STATIC: case Token::STATIC:
*is_static = true; *is_static = true;
......
...@@ -1429,7 +1429,6 @@ enum ParserFlag { ...@@ -1429,7 +1429,6 @@ enum ParserFlag {
kAllowHarmonyRestParameters, kAllowHarmonyRestParameters,
kAllowHarmonySloppy, kAllowHarmonySloppy,
kAllowHarmonySloppyLet, kAllowHarmonySloppyLet,
kAllowHarmonyComputedPropertyNames,
kAllowHarmonySpreadCalls, kAllowHarmonySpreadCalls,
kAllowHarmonyDestructuring, kAllowHarmonyDestructuring,
kAllowHarmonySpreadArrays, kAllowHarmonySpreadArrays,
...@@ -1458,8 +1457,6 @@ void SetParserFlags(i::ParserBase<Traits>* parser, ...@@ -1458,8 +1457,6 @@ void SetParserFlags(i::ParserBase<Traits>* parser,
flags.Contains(kAllowHarmonySpreadCalls)); flags.Contains(kAllowHarmonySpreadCalls));
parser->set_allow_harmony_sloppy(flags.Contains(kAllowHarmonySloppy)); parser->set_allow_harmony_sloppy(flags.Contains(kAllowHarmonySloppy));
parser->set_allow_harmony_sloppy_let(flags.Contains(kAllowHarmonySloppyLet)); parser->set_allow_harmony_sloppy_let(flags.Contains(kAllowHarmonySloppyLet));
parser->set_allow_harmony_computed_property_names(
flags.Contains(kAllowHarmonyComputedPropertyNames));
parser->set_allow_harmony_destructuring( parser->set_allow_harmony_destructuring(
flags.Contains(kAllowHarmonyDestructuring)); flags.Contains(kAllowHarmonyDestructuring));
parser->set_allow_harmony_spread_arrays( parser->set_allow_harmony_spread_arrays(
...@@ -5264,7 +5261,6 @@ TEST(ComputedPropertyName) { ...@@ -5264,7 +5261,6 @@ TEST(ComputedPropertyName) {
NULL}; NULL};
static const ParserFlag always_flags[] = { static const ParserFlag always_flags[] = {
kAllowHarmonyComputedPropertyNames,
kAllowHarmonySloppy, kAllowHarmonySloppy,
}; };
RunParserSyncTest(context_data, error_data, kError, NULL, 0, RunParserSyncTest(context_data, error_data, kError, NULL, 0,
...@@ -5293,7 +5289,6 @@ TEST(ComputedPropertyNameShorthandError) { ...@@ -5293,7 +5289,6 @@ TEST(ComputedPropertyNameShorthandError) {
NULL}; NULL};
static const ParserFlag always_flags[] = { static const ParserFlag always_flags[] = {
kAllowHarmonyComputedPropertyNames,
kAllowHarmonySloppy, kAllowHarmonySloppy,
}; };
RunParserSyncTest(context_data, error_data, kError, NULL, 0, RunParserSyncTest(context_data, error_data, kError, NULL, 0,
...@@ -5586,11 +5581,7 @@ TEST(DuplicateProtoNoError) { ...@@ -5586,11 +5581,7 @@ TEST(DuplicateProtoNoError) {
NULL NULL
}; };
static const ParserFlag always_flags[] = { RunParserSyncTest(context_data, error_data, kSuccess);
kAllowHarmonyComputedPropertyNames,
};
RunParserSyncTest(context_data, error_data, kSuccess, NULL, 0,
always_flags, arraysize(always_flags));
} }
...@@ -6329,7 +6320,6 @@ TEST(StrongModeFreeVariablesNotDeclared) { ...@@ -6329,7 +6320,6 @@ TEST(StrongModeFreeVariablesNotDeclared) {
TEST(DestructuringPositiveTests) { TEST(DestructuringPositiveTests) {
i::FLAG_harmony_destructuring = true; i::FLAG_harmony_destructuring = true;
i::FLAG_harmony_arrow_functions = true; i::FLAG_harmony_arrow_functions = true;
i::FLAG_harmony_computed_property_names = true;
const char* context_data[][2] = {{"'use strict'; let ", " = {};"}, const char* context_data[][2] = {{"'use strict'; let ", " = {};"},
{"var ", " = {};"}, {"var ", " = {};"},
...@@ -6378,8 +6368,7 @@ TEST(DestructuringPositiveTests) { ...@@ -6378,8 +6368,7 @@ TEST(DestructuringPositiveTests) {
"[a,,...rest]", "[a,,...rest]",
NULL}; NULL};
// clang-format on // clang-format on
static const ParserFlag always_flags[] = {kAllowHarmonyComputedPropertyNames, static const ParserFlag always_flags[] = {kAllowHarmonyArrowFunctions,
kAllowHarmonyArrowFunctions,
kAllowHarmonyDestructuring}; kAllowHarmonyDestructuring};
RunParserSyncTest(context_data, data, kSuccess, NULL, 0, always_flags, RunParserSyncTest(context_data, data, kSuccess, NULL, 0, always_flags,
arraysize(always_flags)); arraysize(always_flags));
...@@ -6389,9 +6378,7 @@ TEST(DestructuringPositiveTests) { ...@@ -6389,9 +6378,7 @@ TEST(DestructuringPositiveTests) {
TEST(DestructuringNegativeTests) { TEST(DestructuringNegativeTests) {
i::FLAG_harmony_destructuring = true; i::FLAG_harmony_destructuring = true;
i::FLAG_harmony_arrow_functions = true; i::FLAG_harmony_arrow_functions = true;
i::FLAG_harmony_computed_property_names = true; static const ParserFlag always_flags[] = {kAllowHarmonyArrowFunctions,
static const ParserFlag always_flags[] = {kAllowHarmonyComputedPropertyNames,
kAllowHarmonyArrowFunctions,
kAllowHarmonyDestructuring}; kAllowHarmonyDestructuring};
{ // All modes. { // All modes.
...@@ -6560,9 +6547,7 @@ TEST(DestructuringDisallowPatternsInForVarIn) { ...@@ -6560,9 +6547,7 @@ TEST(DestructuringDisallowPatternsInForVarIn) {
TEST(DestructuringDuplicateParams) { TEST(DestructuringDuplicateParams) {
i::FLAG_harmony_destructuring = true; i::FLAG_harmony_destructuring = true;
i::FLAG_harmony_arrow_functions = true; i::FLAG_harmony_arrow_functions = true;
i::FLAG_harmony_computed_property_names = true; static const ParserFlag always_flags[] = {kAllowHarmonyArrowFunctions,
static const ParserFlag always_flags[] = {kAllowHarmonyComputedPropertyNames,
kAllowHarmonyArrowFunctions,
kAllowHarmonyDestructuring}; kAllowHarmonyDestructuring};
const char* context_data[][2] = {{"'use strict';", ""}, const char* context_data[][2] = {{"'use strict';", ""},
{"function outer() { 'use strict';", "}"}, {"function outer() { 'use strict';", "}"},
...@@ -6590,9 +6575,7 @@ TEST(DestructuringDuplicateParams) { ...@@ -6590,9 +6575,7 @@ TEST(DestructuringDuplicateParams) {
TEST(DestructuringDuplicateParamsSloppy) { TEST(DestructuringDuplicateParamsSloppy) {
i::FLAG_harmony_destructuring = true; i::FLAG_harmony_destructuring = true;
i::FLAG_harmony_arrow_functions = true; i::FLAG_harmony_arrow_functions = true;
i::FLAG_harmony_computed_property_names = true; static const ParserFlag always_flags[] = {kAllowHarmonyArrowFunctions,
static const ParserFlag always_flags[] = {kAllowHarmonyComputedPropertyNames,
kAllowHarmonyArrowFunctions,
kAllowHarmonyDestructuring}; kAllowHarmonyDestructuring};
const char* context_data[][2] = { const char* context_data[][2] = {
{"", ""}, {"function outer() {", "}"}, {nullptr, nullptr}}; {"", ""}, {"function outer() {", "}"}, {nullptr, nullptr}};
...@@ -6615,9 +6598,7 @@ TEST(DestructuringDuplicateParamsSloppy) { ...@@ -6615,9 +6598,7 @@ TEST(DestructuringDuplicateParamsSloppy) {
TEST(DestructuringDisallowPatternsInSingleParamArrows) { TEST(DestructuringDisallowPatternsInSingleParamArrows) {
i::FLAG_harmony_destructuring = true; i::FLAG_harmony_destructuring = true;
i::FLAG_harmony_arrow_functions = true; i::FLAG_harmony_arrow_functions = true;
i::FLAG_harmony_computed_property_names = true; static const ParserFlag always_flags[] = {kAllowHarmonyArrowFunctions,
static const ParserFlag always_flags[] = {kAllowHarmonyComputedPropertyNames,
kAllowHarmonyArrowFunctions,
kAllowHarmonyDestructuring}; kAllowHarmonyDestructuring};
const char* context_data[][2] = {{"'use strict';", ""}, const char* context_data[][2] = {{"'use strict';", ""},
{"function outer() { 'use strict';", "}"}, {"function outer() { 'use strict';", "}"},
...@@ -6640,10 +6621,9 @@ TEST(DestructuringDisallowPatternsInRestParams) { ...@@ -6640,10 +6621,9 @@ TEST(DestructuringDisallowPatternsInRestParams) {
i::FLAG_harmony_destructuring = true; i::FLAG_harmony_destructuring = true;
i::FLAG_harmony_arrow_functions = true; i::FLAG_harmony_arrow_functions = true;
i::FLAG_harmony_rest_parameters = true; i::FLAG_harmony_rest_parameters = true;
i::FLAG_harmony_computed_property_names = true; static const ParserFlag always_flags[] = {kAllowHarmonyArrowFunctions,
static const ParserFlag always_flags[] = { kAllowHarmonyRestParameters,
kAllowHarmonyComputedPropertyNames, kAllowHarmonyArrowFunctions, kAllowHarmonyDestructuring};
kAllowHarmonyRestParameters, kAllowHarmonyDestructuring};
const char* context_data[][2] = {{"'use strict';", ""}, const char* context_data[][2] = {{"'use strict';", ""},
{"function outer() { 'use strict';", "}"}, {"function outer() { 'use strict';", "}"},
{"", ""}, {"", ""},
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --harmony-computed-property-names
// Test that we throw early syntax errors in harmony mode // Test that we throw early syntax errors in harmony mode
// when using an immutable binding in an assigment or with // when using an immutable binding in an assigment or with
// prefix/postfix decrement/increment operators. // prefix/postfix decrement/increment operators.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-computed-property-names --harmony-sloppy // Flags: --harmony-sloppy
// Flags: --allow-natives-syntax // Flags: --allow-natives-syntax
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
'use strict'; 'use strict';
// Flags: --harmony-computed-property-names
function ID(x) { function ID(x) {
return x; return x;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-computed-property-names --allow-natives-syntax // Flags: --allow-natives-syntax
(function TestProtoDeopt() { (function TestProtoDeopt() {
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-computed-property-names
function ID(x) { function ID(x) {
return x; return x;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-computed-property-names --allow-natives-syntax // Flags: --allow-natives-syntax
function ID(x) { function ID(x) {
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-computed-property-names
function ID(x) { function ID(x) {
return x; return x;
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --harmony-computed-property-names
// Flags: --no-legacy-const --harmony-sloppy --harmony-sloppy-let // Flags: --no-legacy-const --harmony-sloppy --harmony-sloppy-let
// Test that we throw early syntax errors in harmony mode // Test that we throw early syntax errors in harmony mode
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
// Flags: --harmony-destructuring --harmony-computed-property-names // Flags: --harmony-destructuring
// Flags: --harmony-arrow-functions --no-lazy --allow-natives-syntax // Flags: --harmony-arrow-functions --no-lazy --allow-natives-syntax
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
// Flags: --harmony-destructuring --harmony-computed-property-names // Flags: --harmony-destructuring
// Flags: --harmony-arrow-functions --allow-natives-syntax // Flags: --harmony-arrow-functions --allow-natives-syntax
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
// Flags: --harmony-destructuring --harmony-computed-property-names // Flags: --harmony-destructuring
// Flags: --harmony-arrow-functions --harmony-rest-parameters // Flags: --harmony-arrow-functions --harmony-rest-parameters
(function TestObjectLiteralPattern() { (function TestObjectLiteralPattern() {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-computed-property-names --harmony-sloppy // Flags: --harmony-sloppy
assertThrows(function f() { assertThrows(function f() {
var t = { toString: function() { throw new Error(); } }; var t = { toString: function() { throw new Error(); } };
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --strong-mode --harmony-rest-parameters --harmony-arrow-functions // Flags: --strong-mode --harmony-rest-parameters --harmony-arrow-functions
// Flags: --harmony-computed-property-names
// Note that it's essential for these tests that the reference is inside dead // Note that it's essential for these tests that the reference is inside dead
// code (because we already produce ReferenceErrors for run-time unresolved // code (because we already produce ReferenceErrors for run-time unresolved
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
// Flags: --harmony-destructuring --harmony-computed-property-names // Flags: --harmony-destructuring
// Flags: --harmony-arrow-functions --strong-mode --allow-natives-syntax // Flags: --harmony-arrow-functions --strong-mode --allow-natives-syntax
(function() { (function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment