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
|
es6id: 20.1.1.1
|
||||||
description: Invalid octal literals yield NaN
|
description: Invalid octal literals yield NaN
|
||||||
info: >
|
info: >
|
||||||
BinaryIntegerLiteral ::
|
OctalIntegerLiteral ::
|
||||||
0b BinaryDigits
|
0o OctalDigits
|
||||||
0B BinaryDigits
|
0O OctalDigits
|
||||||
BinaryDigits ::
|
OctalDigits ::
|
||||||
BinaryDigit
|
OctalDigit
|
||||||
BinaryDigits BinaryDigit
|
OctalDigits OctalDigit
|
||||||
BinaryDigit :: one of
|
OctalDigit :: one of
|
||||||
0 1
|
0 1 2 3 4 5 6 7
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Number('0o8'), NaN, 'invalid digit');
|
assert.sameValue(Number('0o8'), NaN, 'invalid digit');
|
||||||
|
|
|
@ -16,4 +16,4 @@ info: >
|
||||||
negative: SyntaxError
|
negative: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
0b;
|
0o;
|
||||||
|
|
Loading…
Reference in New Issue