numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js (812B)
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: NonZeroDigit NumericLiteralSeparator DecimalDigits 8 info: | 9 NumericLiteral :: 10 DecimalIntegerLiteral BigIntLiteralSuffix 11 NumericLiteralBase BigIntLiteralSuffix 12 13 NumericLiteralBase :: 14 BinaryIntegerLiteral 15 OctalIntegerLiteral 16 HexIntegerLiteral 17 18 BigIntLiteralSuffix :: n 19 20 NumericLiteralSeparator :: 21 _ 22 23 DecimalIntegerLiteral :: 24 ... 25 NonZeroDigit NumericLiteralSeparator DecimalDigits 26 27 NonZeroDigit :: one of 28 1 2 3 4 5 6 7 8 9 29 30 negative: 31 phase: parse 32 type: SyntaxError 33 features: [BigInt, numeric-separator-literal] 34 ---*/ 35 36 $DONOTEVALUATE(); 37 38 0_0123456789n;