Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1002)

Unified Diff: test/cctest/test-parsing.cc

Issue 2203843002: Remove --harmony-exponentiation-operator flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parsing/scanner.cc ('k') | test/mjsunit/es7/exponentiation-operator.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index 656458962a42094ecb7ca2a2985f7046369a6d7f..1c85fc3ccff2be52b6b96c5d64225a0eb40303f1 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -1557,7 +1557,6 @@ enum ParserFlag {
kAllowNatives,
kAllowHarmonyFunctionSent,
kAllowHarmonyRestrictiveDeclarations,
- kAllowHarmonyExponentiationOperator,
kAllowHarmonyForIn,
kAllowHarmonyAsyncAwait,
kAllowHarmonyRestrictiveGenerators,
@@ -1579,8 +1578,6 @@ void SetParserFlags(i::ParserBase<Traits>* parser,
flags.Contains(kAllowHarmonyFunctionSent));
parser->set_allow_harmony_restrictive_declarations(
flags.Contains(kAllowHarmonyRestrictiveDeclarations));
- parser->set_allow_harmony_exponentiation_operator(
- flags.Contains(kAllowHarmonyExponentiationOperator));
parser->set_allow_harmony_for_in(flags.Contains(kAllowHarmonyForIn));
parser->set_allow_harmony_async_await(
flags.Contains(kAllowHarmonyAsyncAwait));
@@ -7470,10 +7467,7 @@ TEST(ExponentiationOperator) {
};
// clang-format on
- static const ParserFlag always_flags[] = {
- kAllowHarmonyExponentiationOperator};
- RunParserSyncTest(context_data, data, kSuccess, NULL, 0, always_flags,
- arraysize(always_flags));
+ RunParserSyncTest(context_data, data, kSuccess);
}
TEST(ExponentiationOperatorErrors) {
@@ -7520,10 +7514,7 @@ TEST(ExponentiationOperatorErrors) {
};
// clang-format on
- static const ParserFlag always_flags[] = {
- kAllowHarmonyExponentiationOperator};
- RunParserSyncTest(context_data, error_data, kError, NULL, 0, always_flags,
- arraysize(always_flags));
+ RunParserSyncTest(context_data, error_data, kError);
}
TEST(AsyncAwait) {
« no previous file with comments | « src/parsing/scanner.cc ('k') | test/mjsunit/es7/exponentiation-operator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698