robamler / dontprint

Firefox add-on to send scientific articles to your e-reader directly from journal websites.
http://dontprint.net
Other
42 stars 0 forks source link

Remove octal number literals #25

Closed robamler closed 9 years ago

robamler commented 9 years ago

Apparently, these are deprecated.

robamler commented 9 years ago

Actually, they're not, but should be preceded with "0o" rather than just "0". However, there are also binary literals ("0b..."), which are better here.

See https://people.mozilla.org/~jorendorff/es6-draft.html#sec-literals-numeric-literals

robamler commented 9 years ago

Above link was a draft for ES6. In current version, ECMA Script 5.1, neither binary nor octal literals are defined. Only decimal and hex literals are allowed, see http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf