mirror of https://github.com/tc39/test262.git
Convert binary integers to octal in octal integer tests
This commit is contained in:
parent
0d9733e93b
commit
26e6fd7c17
|
@ -5,14 +5,14 @@
|
|||
es6id: 20.1.1.1
|
||||
description: Invalid octal literals yield NaN
|
||||
info: >
|
||||
BinaryIntegerLiteral ::
|
||||
0b BinaryDigits
|
||||
0B BinaryDigits
|
||||
BinaryDigits ::
|
||||
BinaryDigit
|
||||
BinaryDigits BinaryDigit
|
||||
BinaryDigit :: one of
|
||||
0 1
|
||||
OctalIntegerLiteral ::
|
||||
0o OctalDigits
|
||||
0O OctalDigits
|
||||
OctalDigits ::
|
||||
OctalDigit
|
||||
OctalDigits OctalDigit
|
||||
OctalDigit :: one of
|
||||
0 1 2 3 4 5 6 7
|
||||
---*/
|
||||
|
||||
assert.sameValue(Number('0o8'), NaN, 'invalid digit');
|
||||
|
|
|
@ -16,4 +16,4 @@ info: >
|
|||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
0b;
|
||||
0o;
|
||||
|
|
Loading…
Reference in New Issue