You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/Scanner/NumericLiteralSuffix.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -86,9 +86,11 @@ var tests = [
86
86
{
87
87
name: "Multi-unit count updated in the middle of a token",
88
88
body: function(){
89
-
assert.throws(()=>eval('\u20091a'),SyntaxError,'Multi-unit whitespace followed by numeric literal followed by identifier','Unexpected identifier after numeric literal');
90
-
assert.throws(()=>eval('\u20091\\u0065'),SyntaxError,'Multi-unit whitespace followed by numeric literal followed by unicode escape sequence','Unexpected identifier after numeric literal');
91
-
assert.throws(()=>eval('\u20090o1239'),SyntaxError,'Multi-unit whitespace followed by invalid octal numeric literal','Invalid number');
assert.throws(()=>eval('\u20091a'),SyntaxError,'Multi-unit whitespace followed by numeric literal followed by identifier','Unexpected identifier after numeric literal');
91
+
assert.throws(()=>eval('\u20091\\u0065'),SyntaxError,'Multi-unit whitespace followed by numeric literal followed by unicode escape sequence','Unexpected identifier after numeric literal');
92
+
assert.throws(()=>eval('\u20090o1239'),SyntaxError,'Multi-unit whitespace followed by invalid octal numeric literal','Invalid number');
0 commit comments