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

View File

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