As part of https://github.com/heycam/webidl/issues/76, we should give dictionary members that accept other dictionary members a default value. In most cases, we set the default to null and IDL conversion treats that as if an empty dictionary was passed "{}".
So, for example:
const dict = {};
response.retry(dict);
Would show up internally as if the following had been passed: { payer: {}, shippingAddress: {} }.
As part of https://github.com/heycam/webidl/issues/76, we should give dictionary members that accept other dictionary members a default value. In most cases, we set the default to
null
and IDL conversion treats that as if an empty dictionary was passed "{}".So, for example:
Would show up internally as if the following had been passed:
{ payer: {}, shippingAddress: {} }
.