Re: [whatwg/streams] Add state checks to Close() and Enqueue() (#1029)

> I don't know if that's a spec bug or an implementation bug.

Implementation bug.  Per spec, that getter runs at https://heycam.github.io/webidl/#call-a-user-objects-operation step 10.1.  But step 7 of that algorithm calls https://html.spec.whatwg.org/multipage/webappapis.html#prepare-to-run-script which pushes a JS execution context on the stack.  After that, until the matching https://html.spec.whatwg.org/multipage/webappapis.html#clean-up-after-running-script (which happens in step 15.2), there should be no microtask checkpoints.

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

Received on Wednesday, 11 March 2020 01:09:52 UTC