| Index: src/parsing/preparser.cc
|
| diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc
|
| index 68372f841a7ea7811129db20ff93046c174dbbf2..b2732f553bf6b21aee80e7f94dba7b2ea888ff7a 100644
|
| --- a/src/parsing/preparser.cc
|
| +++ b/src/parsing/preparser.cc
|
| @@ -134,6 +134,7 @@ PreParser::PreParseResult PreParser::PreParseLazyFunction(
|
| if (is_strict(scope_->language_mode())) {
|
| int end_pos = scanner()->location().end_pos;
|
| CheckStrictOctalLiteral(start_position, end_pos, &ok);
|
| + CheckDecimalLiteralWithLeadingZero(use_counts, start_position, end_pos);
|
| if (!ok) return kPreParseSuccess;
|
| }
|
| }
|
| @@ -1106,6 +1107,8 @@ PreParser::Expression PreParser::ParseFunctionLiteral(
|
| if (is_strict(language_mode)) {
|
| int end_position = scanner()->location().end_pos;
|
| CheckStrictOctalLiteral(start_position, end_position, CHECK_OK);
|
| + CheckDecimalLiteralWithLeadingZero(use_counts_, start_position,
|
| + end_position);
|
| }
|
|
|
| return Expression::Default();
|
|
|