Convert binary integers to octal in octal integer tests

This commit is contained in:
Gorkem Yakin 2015-09-30 08:54:45 -07:00
parent 0d9733e93b
commit 26e6fd7c17
2 changed files with 9 additions and 9 deletions

View File

@ -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');

View File

@ -16,4 +16,4 @@ info: >
negative: SyntaxError
---*/
0b;
0o;