Skip to content

Commit eee0fb5

Browse files
committed
README: Reference HTML structuredClone integration
Ref tc39#19
1 parent fe6c68c commit eee0fb5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ An immutable buffer cannot be detached, resized, or further transferred. Its `ma
8585

8686
The ArrayBuffer `slice` method and TypedArray methods that create new ArrayBuffers (`filter`, `map`, `slice`, `toReversed`, etc.) make no effort to preserve immutability, just like they make no effort to preserve resizability (although use of SpeciesConstructor in those methods means that _lack_ of resizability/immutability in the result cannot be guaranteed for the latter).
8787

88+
Immutable buffers also [intuitively integrate with HTML `structuredClone`](https://github.com/whatwg/html/pull/11033)—they are not transferable, but cloning preserves both immutability and the underlying data block.
89+
8890
## Use cases
8991

9092
### Represent arbitrary binary data as an immutable [netstring](https://en.wikipedia.org/wiki/Netstring)

0 commit comments

Comments
 (0)