| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index 753391193bf03667a685a24161b83e53ca3ecbda..972787f05877d8be6e5591dfb73ce90354504787 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -1062,6 +1062,8 @@ FunctionLiteral* Parser::DoParseProgram(ParseInfo* info) {
|
|
|
| if (ok && is_strict(language_mode())) {
|
| CheckStrictOctalLiteral(beg_pos, scanner()->location().end_pos, &ok);
|
| + }
|
| + if (ok && (is_strict(language_mode()) || allow_harmony_sloppy())) {
|
| CheckConflictingVarDeclarations(scope_, &ok);
|
| }
|
|
|
| @@ -4141,6 +4143,8 @@ FunctionLiteral* Parser::ParseFunctionLiteral(
|
| if (is_strict(language_mode())) {
|
| CheckStrictOctalLiteral(scope->start_position(), scope->end_position(),
|
| CHECK_OK);
|
| + }
|
| + if (is_strict(language_mode()) || allow_harmony_sloppy()) {
|
| CheckConflictingVarDeclarations(scope, CHECK_OK);
|
| }
|
| }
|
|
|