fixed the handling of unicode identifiers

This commit is contained in:
Fabrice Bellard
2025-04-10 10:34:40 +02:00
parent 9d3776d0d4
commit 25ffdb418e
2 changed files with 24 additions and 7 deletions

View File

@@ -622,6 +622,12 @@ function test_optional_chaining()
assert((a?.["b"])().c, 42);
}
function test_unicode_ident()
{
var õ = 3;
assert(typeof õ, "undefined");
}
test_op1();
test_cvt();
test_eq();
@@ -645,3 +651,4 @@ test_function_expr_name();
test_parse_semicolon();
test_optional_chaining();
test_parse_arrow_function();
test_unicode_ident();