Parse non-octals with leading zeros in non strict mode correctly (#9114)
* Parse non-octals with leading zeros in non strict mode correctly * Better error message
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Invalid number (1:21)"
|
||||
"throws": "Legacy octal literals are not allowed in strict mode (1:21)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Invalid number (1:33)"
|
||||
"throws": "Legacy octal literals are not allowed in strict mode (1:33)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Invalid number (1:36)"
|
||||
"throws": "Legacy octal literals are not allowed in strict mode (1:36)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user