Thanks for once again putting this together, Rick! On Fri, Oct 3, 2014 at 3:22 PM, Rick Waldron <waldron.r...@gmail.com> wrote: > ## 4.4 Number('0b0101'). NaN or not? > (Erik Arvidsson) > > EA: Previous discussion: > https://github.com/rwaldron/tc39-notes/blob/c61f48cea5f2339a1ec65ca89827c8cff170779b/es6/2014-04/apr-9.md#46-updates-to-parseint > > Should `Number` be able to parse the string "0b0" or "0o1" > > (Discussion of people (ab)using Number for converting user input and whether > this should affect things.) > > Yes. > > #### Conclusion/Resolution > > - Use spec-internal `ToNumber` via userland `Number` called as a function > will convert (ie `Number('0b101') === 5)`. > - Upholding previous consensus on `parseInt`
I don’t understand this reasoning. Making `parseInt` understand the new syntax was considered a security hazard, but for `Number` we can somehow get away with it? Any more information on the disconnect? _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss