WICG / capability-delegation

An API to allow developers transfer the ability to use restricted APIs to any target window in the frame tree.
Other
14 stars 7 forks source link

Make postMessage()'s delegate an enum #30

Open annevk opened 2 years ago

annevk commented 2 years ago

Given that we want to throw for unknown values, it might as well be an IDL enum? That would simplify some things for #9, too.

zcorpan commented 6 months ago

This would impact which exception to throw, from NotSupportedError to TypeError.

https://webidl.spec.whatwg.org/#js-enumeration