numeric-separator-literal-lol-01-err.js (1225B)
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 must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) 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 DecimalIntegerLiteral :: 25 0 26 NonZeroDigit DecimalDigitsopt 27 NonZeroDigit 28 NonZeroDigit NumericLiteralSeparator_opt DecimalDigits 29 NonOctalDecimalIntegerLiteral 30 31 NonOctalDecimalIntegerLiteral :: 32 0 NonOctalDigit 33 LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit 34 NonOctalDecimalIntegerLiteral DecimalDigit 35 36 LegacyOctalLikeDecimalIntegerLiteral :: 37 0 OctalDigit 38 LegacyOctalLikeDecimalIntegerLiteral OctalDigit 39 40 NonOctalDigit::one of 41 8 9 42 43 OctalDigit::one of 44 0 1 2 3 4 5 6 7 45 negative: 46 phase: parse 47 type: SyntaxError 48 features: [BigInt, numeric-separator-literal] 49 ---*/ 50 51 $DONOTEVALUATE(); 52 53 01_0n;