Standard builtins' prototypes and toString

Till Schneidereit till at tillschneidereit.net
Thu Jun 12 08:59:15 PDT 2014


On Thu, Jun 12, 2014 at 5:55 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> On 6/12/14, 11:45 AM, André Bargull wrote:
>
>> And Number.prototype, String.prototype, Boolean.prototype
>>
>
> All of those have the relevant internal fields, so they don't have the
> problem.
>
> e.g. Number.prototype.toString() returns "0".
>

They won't have those fields much longer if the changes in annex E.1[1]
work out.

[1]: Search for "Date" in
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-additions-and-changes-that-introduce-incompatibilities-with-prior-editions-in-the-6th-edition
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140612/a0883b4f/attachment.html>


More information about the es-discuss mailing list