mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 06:54:26 +03:00
fixed the handling of unicode identifiers
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user