| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index 192892602e61b196401e2a89d2d67f4458f0a889..9d6daa4377f35f3fc5b35a2fc39c2c851d0b9d0f 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -3635,6 +3635,7 @@ FunctionLiteral* Parser::ParseFunctionLiteral(Handle<String> var_name,
|
| scanner().SeekForward(end_pos - 1);
|
| materialized_literal_count = entry.literal_count();
|
| expected_property_count = entry.property_count();
|
| + if (entry.strict_mode()) top_scope_->EnableStrictMode();
|
| only_simple_this_property_assignments = false;
|
| this_property_assignments = isolate()->factory()->empty_fixed_array();
|
| Expect(Token::RBRACE, CHECK_OK);
|
|
|