Re: [whatwg/streams] Misuse of `Assert` in spec (Issue #1327)

> the Web IDL machinery will perform the appropriate type checks in the JavaScript bindings (and will throw a `TypeError` if they fail)

Thank you for pointing me in the right direction! You're absolutely right. I didn't realize that:

- WebIDL has runtime behavior (and isn't just an inert description like `.d.ts` files
- "Method steps" isn't the *entire* description of what the function does. It happens in the context of ["create an operation function"](https://webidl.spec.whatwg.org/#dfn-create-operation-function).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1327#issuecomment-2349855250
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1327/2349855250@github.com>

Received on Friday, 13 September 2024 18:42:30 UTC