numeric-separator-literal-dd-nsl-dd-one-of.js (815B)
1 // Copyright (C) 2017 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: prod-NumericLiteralSeparator 6 description: NonZeroDigit NumericLiteralSeparator DecimalDigit 7 info: | 8 NumericLiteralSeparator :: 9 _ 10 11 DecimalIntegerLiteral :: 12 ... 13 NonZeroDigit NumericLiteralSeparator_opt DecimalDigits 14 15 16 DecimalDigits :: 17 DecimalDigit 18 ... 19 20 DecimalDigit :: one of 21 0 1 2 3 4 5 6 7 8 9 22 23 features: [numeric-separator-literal] 24 ---*/ 25 26 assert.sameValue(1_0, 10); 27 assert.sameValue(1_1, 11); 28 assert.sameValue(1_2, 12); 29 assert.sameValue(1_3, 13); 30 assert.sameValue(1_4, 14); 31 assert.sameValue(1_5, 15); 32 assert.sameValue(1_6, 16); 33 assert.sameValue(1_7, 17); 34 assert.sameValue(1_8, 18); 35 assert.sameValue(1_9, 19); 36 37 reportCompare(0, 0);