- From: Boris Zbarsky <notifications@github.com>
- Date: Wed, 04 Jul 2018 02:18:32 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 4 July 2018 09:18:54 UTC
> Is this the way it currently is, or what you're suggesting in OP? This is the way it currently is. To be clear, in the current spec for function arguments, `undefined` and `null` are equivalent to each other (and mean "empty dictionary") while `{}` is a bit more complicated because it involved property gets but generally means "empty dictionary" if people haven't modified `Object.prototype`. For other dictionaries, still in the current spec, `null` means empty dictionary while `{}` means you start getting properties off it, etc. This is why I wanted to double-check what your actual suggestion is: it sounds like you want to treat `undefined` and `null` interchangeably to mean "not present", which is not how it works _anywhere_ in webidl. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/issues/76#issuecomment-402418912
Received on Wednesday, 4 July 2018 09:18:54 UTC