numeric-separator-literal-lol-01-err.js (982B)
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 NumericLiteralSeparator :: 11 _ 12 13 DecimalIntegerLiteral :: 14 0 15 NonZeroDigit DecimalDigitsopt 16 NonZeroDigit 17 NonZeroDigit NumericLiteralSeparator_opt DecimalDigits 18 NonOctalDecimalIntegerLiteral 19 20 NonOctalDecimalIntegerLiteral :: 21 0 NonOctalDigit 22 LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit 23 NonOctalDecimalIntegerLiteral DecimalDigit 24 25 LegacyOctalLikeDecimalIntegerLiteral :: 26 0 OctalDigit 27 LegacyOctalLikeDecimalIntegerLiteral OctalDigit 28 29 NonOctalDigit::one of 30 8 9 31 32 OctalDigit::one of 33 0 1 2 3 4 5 6 7 34 negative: 35 phase: parse 36 type: SyntaxError 37 features: [numeric-separator-literal] 38 ---*/ 39 40 $DONOTEVALUATE(); 41 42 01_0;