blob: 46ebabc7ea556595e34da74cad0a86f470d2b849 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/
assertThrowsInstanceOf(function() { eval('let a = 100_00_;'); }, SyntaxError);
assertThrowsInstanceOf(() => eval("let b = 10__;"), SyntaxError);
assertThrowsInstanceOf(() => eval("let b = 1._2;"), SyntaxError);
if (typeof reportCompare === "function")
reportCompare(true, true);
|