numeric-separator-literal-dds-nsl-dds-dunder-err.js (833B)
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 appear adjacent to another 9 NumericLiteralSeparator in DecimalIntegerLiteral 10 info: | 11 NumericLiteral :: 12 DecimalIntegerLiteral BigIntLiteralSuffix 13 NumericLiteralBase BigIntLiteralSuffix 14 15 NumericLiteralBase :: 16 BinaryIntegerLiteral 17 OctalIntegerLiteral 18 HexIntegerLiteral 19 20 BigIntLiteralSuffix :: n 21 22 NumericLiteralSeparator :: 23 _ 24 25 DecimalIntegerLiteral :: 26 ... 27 NonZeroDigit NumericLiteralSeparator_opt DecimalDigits 28 29 negative: 30 phase: parse 31 type: SyntaxError 32 features: [BigInt, numeric-separator-literal] 33 ---*/ 34 35 $DONOTEVALUATE(); 36 37 10__0123456789n;