From 07802f37ddb13489cfde314716ad6181dd9b1671 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 1 Dec 2021 12:10:05 +0100 Subject: syntax: disallow keywords in object property shorthand notation Signed-off-by: Jo-Philipp Wich --- include/ucode/lexer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/ucode/lexer.h b/include/ucode/lexer.h index 05f5336..30849e0 100644 --- a/include/ucode/lexer.h +++ b/include/ucode/lexer.h @@ -170,6 +170,8 @@ void uc_lexer_free(uc_lexer_t *lex); uc_token_t *uc_lexer_next_token(uc_lexer_t *lex); +bool uc_lexer_is_keyword(uc_value_t *label); + bool utf8enc(char **out, int *rem, int code); const char * -- cgit v1.2.3