- From: Joshua Bell <notifications@github.com>
- Date: Thu, 18 Jul 2024 10:25:28 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 18 July 2024 17:25:32 UTC
@inexorabletash commented on this pull request.
> @@ -9054,6 +9054,21 @@ a reference to the same object that the IDL value represents.
1. Return [$IsDetachedBuffer$](|jsArrayBuffer|).
</div>
+<div algorithm>
+ A [=buffer source type=] instance |bufferSource| is
+ <dfn for="BufferSource" export>detachable</dfn> if the following steps return true:
+
+ 1. Let |jsArrayBuffer| be the result of [=converted to a JavaScript value|converting=]
+ |bufferSource| to a JavaScript value.
+ 1. If |jsArrayBuffer| has a \[[ViewedArrayBuffer]] internal slot, then set |jsArrayBuffer| to
+ |jsArrayBuffer|.\[[ViewedArrayBuffer]].
+ 1. If [$IsSharedArrayBuffer$](|jsArrayBuffer|) is true, then return false.
+ 1. If [$IsDetachedBuffer$](|jsArrayBuffer|) is true, then return false.
Okay - updated algorithm name to "transferable".
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1419#discussion_r1683232754
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/webidl/pull/1419/review/2186465278@github.com>
Received on Thursday, 18 July 2024 17:25:32 UTC