numeric-separator-literal-oil-nsl-od-err.js (925B)
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 be the last digit character of an 9 OctalIntegerLiteral 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 OctalIntegerLiteral :: 26 0o OctalDigits 27 0O OctalDigits 28 29 OctalDigits :: 30 OctalDigit 31 OctalDigits OctalDigit 32 OctalDigits NumericLiteralSeparator OctalDigit 33 34 OctalDigit :: one of 35 0 1 2 3 4 5 6 7 36 37 negative: 38 phase: parse 39 type: SyntaxError 40 features: [BigInt, numeric-separator-literal] 41 ---*/ 42 43 $DONOTEVALUATE(); 44 45 0o0_n;