mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix property names parsing
This commit is contained in:
parent
c3f493c693
commit
24920cba57
@ -752,7 +752,11 @@ parse_property_assignment (void)
|
||||
STACK_DECLARE_USAGE (IDX)
|
||||
STACK_DECLARE_USAGE (U16)
|
||||
|
||||
current_token_must_be (TOK_NAME);
|
||||
if (!token_is (TOK_NAME))
|
||||
{
|
||||
parse_property_name_and_value ();
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (lp_string_equal_s (lexer_get_string_by_id (token_data ()), "get"))
|
||||
{
|
||||
@ -805,6 +809,7 @@ parse_property_assignment (void)
|
||||
parse_property_name_and_value ();
|
||||
}
|
||||
|
||||
cleanup:
|
||||
STACK_CHECK_USAGE (U16);
|
||||
STACK_CHECK_USAGE (IDX);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user