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

Several tiny cleanups in test-parsing.cc

R=littledan@chromium.org

Review-Url: https://codereview.chromium.org/1926133003
Cr-Commit-Position: refs/heads/master@{#35890}
parent 1542e46d
...@@ -1505,7 +1505,6 @@ i::Handle<i::String> FormatMessage(i::Vector<unsigned> data) { ...@@ -1505,7 +1505,6 @@ i::Handle<i::String> FormatMessage(i::Vector<unsigned> data) {
enum ParserFlag { enum ParserFlag {
kAllowLazy, kAllowLazy,
kAllowNatives, kAllowNatives,
kAllowHarmonyNewTarget,
kAllowHarmonyFunctionSent, kAllowHarmonyFunctionSent,
kAllowHarmonyRestrictiveDeclarations, kAllowHarmonyRestrictiveDeclarations,
kAllowHarmonyExponentiationOperator, kAllowHarmonyExponentiationOperator,
...@@ -5106,7 +5105,7 @@ TEST(ScanTemplateLiterals) { ...@@ -5106,7 +5105,7 @@ TEST(ScanTemplateLiterals) {
"`foo${\r a}`", "`foo${\r a}`",
"`foo${'a' in a}`", "`foo${'a' in a}`",
NULL}; NULL};
RunParserSyncTest(context_data, data, kSuccess, NULL, 0, NULL, 0); RunParserSyncTest(context_data, data, kSuccess);
} }
...@@ -5141,7 +5140,7 @@ TEST(ScanTaggedTemplateLiterals) { ...@@ -5141,7 +5140,7 @@ TEST(ScanTaggedTemplateLiterals) {
"tag`foo${\r a}`", "tag`foo${\r a}`",
"tag`foo${'a' in a}`", "tag`foo${'a' in a}`",
NULL}; NULL};
RunParserSyncTest(context_data, data, kSuccess, NULL, 0, NULL, 0); RunParserSyncTest(context_data, data, kSuccess);
} }
...@@ -5168,7 +5167,7 @@ TEST(TemplateMaterializedLiterals) { ...@@ -5168,7 +5167,7 @@ TEST(TemplateMaterializedLiterals) {
NULL NULL
}; };
RunParserSyncTest(context_data, data, kSuccess, NULL, 0, NULL, 0); RunParserSyncTest(context_data, data, kSuccess);
} }
...@@ -5202,7 +5201,7 @@ TEST(ScanUnterminatedTemplateLiterals) { ...@@ -5202,7 +5201,7 @@ TEST(ScanUnterminatedTemplateLiterals) {
"`foo${fn(}`", "`foo${fn(}`",
"`foo${1 if}`", "`foo${1 if}`",
NULL}; NULL};
RunParserSyncTest(context_data, data, kError, NULL, 0, NULL, 0); RunParserSyncTest(context_data, data, kError);
} }
...@@ -5222,7 +5221,7 @@ TEST(TemplateLiteralsIllegalTokens) { ...@@ -5222,7 +5221,7 @@ TEST(TemplateLiteralsIllegalTokens) {
"`hello${1}\\x\n${2}`", "`hello${1}\\x\n${2}`",
NULL}; NULL};
RunParserSyncTest(context_data, data, kError, NULL, 0, NULL, 0); RunParserSyncTest(context_data, data, kError);
} }
...@@ -7028,7 +7027,7 @@ TEST(MiscSyntaxErrors) { ...@@ -7028,7 +7027,7 @@ TEST(MiscSyntaxErrors) {
}; };
// clang-format on // clang-format on
RunParserSyncTest(context_data, error_data, kError, NULL, 0, NULL, 0); RunParserSyncTest(context_data, error_data, kError);
} }
...@@ -7057,7 +7056,7 @@ TEST(EscapeSequenceErrors) { ...@@ -7057,7 +7056,7 @@ TEST(EscapeSequenceErrors) {
}; };
// clang-format on // clang-format on
RunParserSyncTest(context_data, error_data, kError, NULL, 0, NULL, 0); RunParserSyncTest(context_data, error_data, kError);
} }
......
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