numeric-separator-literal-nonoctal-08-err.js (1174B)
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 NonOctalDecimalIntegerLiteral (08) 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 negative: 43 phase: parse 44 type: SyntaxError 45 features: [BigInt, numeric-separator-literal] 46 ---*/ 47 48 $DONOTEVALUATE(); 49 50 08_0n;