numeric-separator-literal-dd-nsl-err.js (843B)
1 // |reftest| error:SyntaxError 2 // Copyright (C) 2019 Leo Balter. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: prod-NumericLiteralSeparator 7 description: > 8 NumericLiteralSeparator may not be the last digit character 9 info: | 10 NumericLiteral :: 11 DecimalIntegerLiteral BigIntLiteralSuffix 12 NumericLiteralBase BigIntLiteralSuffix 13 14 NumericLiteralBase :: 15 BinaryIntegerLiteral 16 OctalIntegerLiteral 17 HexIntegerLiteral 18 19 BigIntLiteralSuffix :: n 20 21 NumericLiteralSeparator :: 22 _ 23 24 DecimalLiteral :: 25 DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt 26 27 DecimalDigits :: 28 ... 29 DecimalDigits NumericLiteralSeparator DecimalDigit 30 31 negative: 32 phase: parse 33 type: SyntaxError 34 features: [BigInt, numeric-separator-literal] 35 ---*/ 36 37 $DONOTEVALUATE(); 38 39 1_n;