Re: [heycam/webidl] Dictionary types being nullable doesn't make sense (#967)

> one thing bz mentions there that null always means empty dictionary, but I'm not sure if that's applicable to a dictionary in a union as well.

It is. Note step 3 in <https://heycam.github.io/webidl/#es-union>, where if the JS value is `null` or `undefined`, and the union contains a dictionary type, the JS value gets converted into the dictionary type.

-- 
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/967#issuecomment-799531477

Received on Monday, 15 March 2021 15:54:34 UTC