test262/test/language/literals/numeric/numeric-separators/numeric-separator-literal-d...

27 lines
586 B
JavaScript
Raw Normal View History

// Copyright (C) 2017 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: prod-NumericLiteralSeparator
description: >
`.` DecimalDigit NumericLiteralSeparator DecimalDigits ExponentPart
info: |
NumericLiteralSeparator ::
_
DecimalLiteral ::
. DecimalDigits ExponentPart_opt
DecimalDigits ::
DecimalDigit
...
DecimalDigits NumericLiteralSeparator DecimalDigit
ExponentIndicator :: one of
e E
2017-09-28 16:52:08 +02:00
features: [numeric-separator-literal]
---*/
assert.sameValue(.1_01e2, .101e2);