Pass allow_classes to reusable_preparser

R=arv@chromium.org, marja@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23206 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
dslomov@chromium.org 2014-08-19 15:42:47 +00:00
parent e07c82baf2
commit 21b95cc356

View File

@ -3749,6 +3749,7 @@ PreParser::PreParseResult Parser::ParseLazyFunctionBodyWithPreParser(
reusable_preparser_->set_allow_arrow_functions(allow_arrow_functions());
reusable_preparser_->set_allow_harmony_numeric_literals(
allow_harmony_numeric_literals());
reusable_preparser_->set_allow_classes(allow_classes());
}
PreParser::PreParseResult result =
reusable_preparser_->PreParseLazyFunction(strict_mode(),