Open annevk opened 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.
This would impact which exception to throw, from NotSupportedError to TypeError.
NotSupportedError
TypeError
https://webidl.spec.whatwg.org/#js-enumeration
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.