-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
Description
Originally posted by @inexorabletash in #446 (comment)
Drive by comment: the first step here (If a or b is not an instance of MLOperand, then throw a "TypeError"...) is unnecessary, and I see this repeated throughout the newly introduced algorithms for methods ("operations" in Web IDL). The Web IDL bindings already take care validating input types and throwing TypeError.
Further, even in cases where an explicit error must be thrown, the intrinsic type TypeError should be thrown, not a DOMException of type "TypeError" (which is not present in https://webidl.spec.whatwg.org/#idl-DOMException-error-names)
(Issue created to document this change).
inexorabletash