Skip to content

Commit

Permalink
Explicitly say what realm write algorithm's promise is created in
Browse files Browse the repository at this point in the history
  • Loading branch information
ricea committed Feb 6, 2024
1 parent 673ace9 commit 30f5f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ To <dfn>cancel</dfn> a {{WebSocketStream}} |stream| given |reason|, [=close usin
<div algorithm="write algorithm">

To <dfn>write</dfn> |chunk| to a {{WebSocketStream}} |stream|:
1. Let |promise| be a new promise.
1. Let |promise| be [=a new promise=] created in |stream|'s [=relevant realm=].
1. If |chunk| is a {{BufferSource}},
1. Let |data| be a [=get a copy of the buffer source|copy of the bytes=] given |chunk|.
1. Let |opcode| be a binary frame opcode.
Expand Down

0 comments on commit 30f5f8b

Please sign in to comment.