Index: src/parsing/preparser.h |
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h |
index 9e57442daf750fed05f09dc2e70c0993b84ebb4e..86180fa98fe718ee33b46ee5eb589c957f43a7e2 100644 |
--- a/src/parsing/preparser.h |
+++ b/src/parsing/preparser.h |
@@ -1007,6 +1007,8 @@ class PreParser : public ParserBase<PreParserTraits> { |
} else if (is_strict(scope_->language_mode())) { |
CheckStrictOctalLiteral(start_position, scanner()->location().end_pos, |
&ok); |
+ CheckDecimalLiteralWithLeadingZero(use_counts_, start_position, |
+ scanner()->location().end_pos); |
} |
if (materialized_literals) { |
*materialized_literals = function_state_->materialized_literal_count(); |