numeric-separator-literal-nonoctal-09-err.js (931B)
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 (09) 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 negative: 32 phase: parse 33 type: SyntaxError 34 features: [numeric-separator-literal] 35 ---*/ 36 37 $DONOTEVALUATE(); 38 39 09_0;