From 7d587def6e7e8243cd27062fbaaf062f3b2f53c3 Mon Sep 17 00:00:00 2001 From: Richard Davison Date: Sun, 5 May 2024 18:46:30 +0200 Subject: fix class method with name get (#258) Co-authored-by: Richard Davison --- lib/quickjs/quickjs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/quickjs/quickjs.c') diff --git a/lib/quickjs/quickjs.c b/lib/quickjs/quickjs.c index 6b17accc..a71b17a0 100644 --- a/lib/quickjs/quickjs.c +++ b/lib/quickjs/quickjs.c @@ -22489,7 +22489,8 @@ static int __exception js_parse_property_name(JSParseState *s, if (next_token(s)) goto fail1; if (s->token.val == ':' || s->token.val == ',' || - s->token.val == '}' || s->token.val == '(') { + s->token.val == '}' || s->token.val == '(' || + s->token.val == '=' ) { is_non_reserved_ident = TRUE; goto ident_found; } -- cgit 1.4.1-2-gfad0