| Index: src/preparser.h
|
| diff --git a/src/preparser.h b/src/preparser.h
|
| index aeef700bfe7593a8369b4c4b5f0350fa8dc5b707..f6418f23b0d19386f4aab448019d65b7cafedc40 100644
|
| --- a/src/preparser.h
|
| +++ b/src/preparser.h
|
| @@ -1340,11 +1340,13 @@ class PreParserFactory {
|
| PreParserExpression NewRegExpLiteral(PreParserIdentifier js_pattern,
|
| PreParserIdentifier js_flags,
|
| int literal_index,
|
| + bool is_strong,
|
| int pos) {
|
| return PreParserExpression::Default();
|
| }
|
| PreParserExpression NewArrayLiteral(PreParserExpressionList values,
|
| int literal_index,
|
| + bool is_strong,
|
| int pos) {
|
| return PreParserExpression::Default();
|
| }
|
| @@ -1365,6 +1367,7 @@ class PreParserFactory {
|
| int literal_index,
|
| int boilerplate_properties,
|
| bool has_function,
|
| + bool is_strong,
|
| int pos) {
|
| return PreParserExpression::Default();
|
| }
|
| @@ -2210,7 +2213,8 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParseRegExpLiteral(
|
| }
|
| IdentifierT js_flags = this->GetNextSymbol(scanner());
|
| Next();
|
| - return factory()->NewRegExpLiteral(js_pattern, js_flags, literal_index, pos);
|
| + return factory()->NewRegExpLiteral(js_pattern, js_flags, literal_index,
|
| + is_strong(language_mode()), pos);
|
| }
|
|
|
|
|
| @@ -2475,7 +2479,8 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParseArrayLiteral(
|
| // Update the scope information before the pre-parsing bailout.
|
| int literal_index = function_state_->NextMaterializedLiteralIndex();
|
|
|
| - return factory()->NewArrayLiteral(values, literal_index, pos);
|
| + return factory()->NewArrayLiteral(values, literal_index,
|
| + is_strong(language_mode()), pos);
|
| }
|
|
|
|
|
| @@ -2731,6 +2736,7 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParseObjectLiteral(
|
| literal_index,
|
| number_of_boilerplate_properties,
|
| has_function,
|
| + is_strong(language_mode()),
|
| pos);
|
| }
|
|
|
|
|