Re: undefined values in dictionaries

On Tue, Jun 18, 2013 at 9:36 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> What Gecko's code for this looks like is more like this (after making a
> change to align with the intent of the spec here):
>
>   If Type(V) is Null or Undefined set value to Undefined.  Otherwise let
>     value be the result of calling the [[Get]] internal method on V
>     with property name key.
>   Let present be false if Type(value) is Undefined and true otherwise.

I thought we wanted Null and Undefined to be treated as distinct? E.g.
for nullable? I'd expect undefined to be treated as not passed and
null as null.


--
http://annevankesteren.nl/

Received on Monday, 24 June 2013 09:08:06 UTC