Skip to content

Commit c659eb3

Browse files
"Convert a value to a key" should return invalid for detached array buffers (#440)
Closes #417 by updating "7.4 Convert a value to a key" to return invalid when the input buffer source is detached.
1 parent a72426f commit c659eb3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.bs

+5-1
Original file line numberDiff line numberDiff line change
@@ -6366,9 +6366,11 @@ steps may throw an exception.
63666366
<!-- Binary -->
63676367
: If |input| is a [=buffer source type=]
63686368
::
6369+
1. If |input| is [[=BufferSource/detached=]] then return invalid.
6370+
63696371
1. Let |bytes| be the result of
63706372
[=/get a copy of the buffer source|getting a copy of the bytes held by the buffer source=]
6371-
|input|. Rethrow any exceptions.
6373+
|input|.
63726374

63736375
1. Return a new [=/key=] with [=key/type=]
63746376
*binary* and [=key/value=] |bytes|.
@@ -6717,6 +6719,7 @@ For the revision history of the second edition, see [that document's Revision Hi
67176719
* Used [[infra]]'s list sorting definition. (<#346>)
67186720
* Added a definition for [=transaction/live=] transactions, and renamed "run an upgrade transaction" to [=/upgrade a database=], to disambiguate "running". (<#408>)
67196721
* Specified the {{DOMException}} type for failures when reading a value from the underlying storage in [[#object-store-retrieval-operation]]. (<#423>)
6722+
* Updated [=convert a value to a key=] to return invalid for detached array buffers. (<#417>)
67206723

67216724
<!-- ============================================================ -->
67226725
# Acknowledgements # {#acknowledgements}
@@ -6787,6 +6790,7 @@ Pablo Castro,
67876790
Philip Jägenstedt,
67886791
Shawn Wilsher,
67896792
Simon Pieters,
6793+
Steve Becker,
67906794
Tobie Langel,
67916795
Victor Costan,
67926796
Xiaoqian Wu,

0 commit comments

Comments
 (0)