Standard builtins' prototypes and toString

C. Scott Ananian ecmascript at
Tue Jun 17 08:37:36 PDT 2014

On Tue, Jun 17, 2014 at 11:33 AM, Allen Wirfs-Brock
<allen at> wrote:
> I'm not sure who introduced the idea that the Date.prototype should have a
> "zero value", but that is inconsistent with ES3&5 where the TimeValue of
> Date.prototype is NaN:
> If we went the
> (c) route it should presumably be modified to use NaN and not 0.

Sorry, I was using quotes around "zero value" on purpose to mean, "the
appropriate value for the given type" (which is not actually 0).  Date
should be NaN, boolean should be false, etc.  I hope most of those
reading understood this.

More information about the es-discuss mailing list