From 30f5f8b2f650dc3d969fe042871df514d0139e14 Mon Sep 17 00:00:00 2001 From: Adam Rice Date: Wed, 7 Feb 2024 05:12:22 +0900 Subject: [PATCH] Explicitly say what realm write algorithm's promise is created in --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index c32a36e..784ce94 100644 --- a/index.bs +++ b/index.bs @@ -1059,7 +1059,7 @@ To cancel a {{WebSocketStream}} |stream| given |reason|, [=close usin
To write |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.