mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 06:54:26 +03:00
fix class method with name get (#258)
Co-authored-by: Richard Davison <ridaviso@amazon.com>
This commit is contained in:
@@ -22380,7 +22380,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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user