diff options
author | Richard Davison <richard.davison1@gmail.com> | 2024-05-05 18:46:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-05 18:46:30 +0200 |
commit | d9c699f528755360e32f7d2755ad3f91b575b4f9 (patch) | |
tree | 70e09a05d62afb6bc3c783285dad36820c5c8918 /quickjs.c | |
parent | 7a2c6f42d49e7a4003384cf54b187f16e64e47a1 (diff) | |
download | quickjs-d9c699f528755360e32f7d2755ad3f91b575b4f9.tar.gz quickjs-d9c699f528755360e32f7d2755ad3f91b575b4f9.zip |
fix class method with name get (#258)
Co-authored-by: Richard Davison <ridaviso@amazon.com>
Diffstat (limited to 'quickjs.c')
-rw-r--r-- | quickjs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |