Pass all parser flags from Parser to PreParser

This revealed one Mozilla test that depended upon a lack
of early error for "with ({}) function ...". The test
has been marked as failing.

R=littledan@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#34910}
This commit is contained in:
adamk 2016-03-18 17:53:30 -07:00 committed by Commit bot
parent 5a476db04a
commit 3c5d6caac2
2 changed files with 5 additions and 0 deletions

View File

@ -4686,11 +4686,13 @@ PreParser::PreParseResult Parser::ParseLazyFunctionBodyWithPreParser(
SET_ALLOW(natives);
SET_ALLOW(legacy_const);
SET_ALLOW(harmony_sloppy);
SET_ALLOW(harmony_sloppy_function);
SET_ALLOW(harmony_sloppy_let);
SET_ALLOW(harmony_do_expressions);
SET_ALLOW(harmony_function_name);
SET_ALLOW(harmony_function_sent);
SET_ALLOW(harmony_exponentiation_operator);
SET_ALLOW(harmony_restrictive_declarations);
#undef SET_ALLOW
}
PreParser::PreParseResult result = reusable_preparser_->PreParseLazyFunction(

View File

@ -109,6 +109,9 @@
'js1_5/Regress/regress-360969-03': [FAIL, ['mode == debug', TIMEOUT, NO_VARIANTS]],
'js1_5/Regress/regress-360969-04': [FAIL, ['mode == debug', TIMEOUT, NO_VARIANTS]],
# Function declarations are no longer allowed as the body of a with statement.
'js1_5/Regress/regress-326453': [FAIL],
##################### SKIPPED TESTS #####################
# This test checks that we behave properly in an out-of-memory