My bad, should have replied to all. Thanks for clarifying though.
On Fri, Jan 31, 2014 at 11:14 AM, Brendan Eich <bren...@mozilla.com> wrote: > Yes, that's right -- for type-inference-based JITs and AOT compilers that > use a type-checked subset (asm.js, e.g.) this is not an issue. And as you > noted up-thread, it matches other Math.* methods. > > Did you mean to reply only to me, or to reply-all? > > /be > > Qantas 94 Heavy <mailto:qantas94he...@gmail.com> >> January 30, 2014 at 7:13 PM >> >> Sorry if this is stupid, but does that mean that it's been decided that >> Math.clz32 will be generic (in that it won't throw a TypeError if it is not >> a number object)? >> >> >> >> Brendan Eich <mailto:bren...@mozilla.com> >> January 30, 2014 at 6:43 PM >> >> >> >> ToUint32 does ToNumber in its first step (http://people.mozilla.org/~ >> jorendorff/es6-draft.html#sec-touint32). >> >> /be >> _______________________________________________ >> es-discuss mailing list >> es-discuss@mozilla.org >> https://mail.mozilla.org/listinfo/es-discuss >> >> Qantas 94 Heavy <mailto:qantas94he...@gmail.com> >> January 30, 2014 at 6:26 PM >> >> >> Would Math.clz32 still throw a TypeError if the argument is not a number, >> nor an object with the [[NumberData]] internal slot? Currently all math >> functions perform ToNumber on their arguments, unlike what >> Number.prototype.clz is currently specified to do. >> >> _______________________________________________ >> es-discuss mailing list >> es-discuss@mozilla.org >> https://mail.mozilla.org/listinfo/es-discuss >> >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss