Treat null dictionary members as missing per WebIDL (impacts required members) |
||
Issue descriptionhttps://heycam.github.io/webidl/#es-dictionary At step 5.1.2, both undefined and null are treated as missing, but in Blink's dictionary_v8.cpp, only undefined can lead to the TypeError being thrown. If null is passed, instead null will simply be passed along. This means that event constructor dictionaries with required members of interface type don't work as intended, and the resulting event instances will return null for nominally non-nullable attributes. Example: new BlobEvent('foo', {data:null}).data (is null, should throw TypeError)
,
Sep 16 2016
This was a misunderstanding on my part, WebIDL doesn't treat null as missing. Rather it's `foo(null)` that's treated like `foo({})` if foo's first argument is a dictionary.
,
Sep 16 2016
issue 647693 is the real problem |
||
►
Sign in to add a comment |
||
Comment 1 by foolip@chromium.org
, Sep 15 2016