| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index 1bd163ce493e8083234fefec10391dca335d9c6c..d128f9d28f473a4a71433dc29ea3f87dbcc8c72f 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -1067,6 +1067,13 @@ FunctionLiteral* Parser::DoParseProgram(ParseInfo* info) {
|
| if (ok && is_strict(language_mode())) {
|
| CheckStrictOctalLiteral(beg_pos, scanner()->location().end_pos, &ok);
|
| }
|
| + if (ok && is_sloppy(language_mode()) && allow_harmony_sloppy_function()) {
|
| + // TODO(littledan): Function bindings on the global object that modify
|
| + // pre-existing bindings should be made writable, enumerable and
|
| + // nonconfigurable if possible, whereas this code will leave attributes
|
| + // unchanged if the property already exists.
|
| + InsertSloppyBlockFunctionVarBindings(scope, &ok);
|
| + }
|
| if (ok && (is_strict(language_mode()) || allow_harmony_sloppy())) {
|
| CheckConflictingVarDeclarations(scope_, &ok);
|
| }
|
|
|