LibJS: Unprefixed octal numbers are a syntax error in strict mode

This commit is contained in:
Linus Groh 2020-10-19 18:01:28 +01:00 committed by Andreas Kling
commit 46cc1f718e
Notes: sideshowbarker 2024-07-19 01:50:37 +09:00
4 changed files with 24 additions and 4 deletions

View file

@ -139,6 +139,7 @@ private:
void syntax_error(const String& message, size_t line = 0, size_t column = 0);
Token consume();
Token consume(TokenType type);
Token consume_and_validate_numeric_literal();
void consume_or_insert_semicolon();
void save_state();
void load_state();