[parser] Disallow numeric separator in unicode scape sequences (#10468)
* [parser] Disallow numeric separator in unicode scape sequences (#10460) * raise error only when numeric separator plugin is set * Adds argument for checking numeric separator * Fix condition for readability * Add test for hex escape sequence and rephrase error message * Remove exposure for allowNumSeparator in readHexChar method
This commit is contained in:
committed by
Nicolò Ribaudo
parent
3069747a81
commit
f339d2d034
@@ -0,0 +1 @@
|
||||
"\u12_34"
|
||||
@@ -0,0 +1 @@
|
||||
{ "throws": "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences (1:5)" }
|
||||
Reference in New Issue
Block a user