about summary refs log tree commit diff stats
path: root/lib/quickjs/quickjs.c
diff options
context:
space:
mode:
authorRichard Davison <richard.davison1@gmail.com>2024-05-05 18:46:30 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-07 13:13:02 +0200
commit7d587def6e7e8243cd27062fbaaf062f3b2f53c3 (patch)
tree4ef695347f1df76fcc12574ad22918bf3cfdcb28 /lib/quickjs/quickjs.c
parentcef1771a07dc39c3267a00f192cd0b56a38d7593 (diff)
downloadchawan-7d587def6e7e8243cd27062fbaaf062f3b2f53c3.tar.gz
fix class method with name get (#258)
Co-authored-by: Richard Davison <ridaviso@amazon.com>
Diffstat (limited to 'lib/quickjs/quickjs.c')
-rw-r--r--lib/quickjs/quickjs.c3
1 files changed, 2 insertions, 1 deletions
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;
             }