| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index ce3dd20d359310a1b89eda3d05c88551127537d8..86d66c056a6f5b9735507ae665d2c708e4fd23f7 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -943,6 +943,8 @@ FunctionLiteral* Parser::DoParseProgram(ParseInfo* info) {
|
|
|
| if (ok && is_strict(language_mode())) {
|
| CheckStrictOctalLiteral(beg_pos, scanner()->location().end_pos, &ok);
|
| + CheckDecimalLiteralWithLeadingZero(use_counts_, beg_pos,
|
| + scanner()->location().end_pos);
|
| }
|
| if (ok && is_sloppy(language_mode())) {
|
| // TODO(littledan): Function bindings on the global object that modify
|
| @@ -4176,6 +4178,8 @@ FunctionLiteral* Parser::ParseFunctionLiteral(
|
| if (is_strict(language_mode)) {
|
| CheckStrictOctalLiteral(scope->start_position(), scope->end_position(),
|
| CHECK_OK);
|
| + CheckDecimalLiteralWithLeadingZero(use_counts_, scope->start_position(),
|
| + scope->end_position());
|
| }
|
| if (is_sloppy(language_mode)) {
|
| InsertSloppyBlockFunctionVarBindings(scope, CHECK_OK);
|
|
|