Skip to content

Commit 31a4b0b

Browse files
committed
Update README
1 parent 3c494f8 commit 31a4b0b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The [OCapN](https://ocapn.org/) network protocol treats strings and byte-arrays
5454
## Solution
5555

5656
This proposal introduces additional methods and read-only accessor properties to `ArrayBuffer.prototype` that fit naturally into those explained above. Just as a buffer can be resizable or not, and detached or not, this proposal enables buffers to be immutable or not. Just as `transferToFixedSize` moves the contents of a original buffer into a newly created non-resizable buffer, this proposal provides a transfer operation that moves the contents of an original original buffer into a newly created immutable buffer. Altogether, this proposal only adds to `ArrayBuffer.prototype` one method
57-
- `transferToImmutable() :ArrayBuffer` -- move the contents of the original buffer into a new immutable buffer, detach the original buffer, and return the new buffer.
57+
- `transferToImmutable(newByteLength?: number) :ArrayBuffer` -- move the contents of the original buffer into a new immutable buffer, detach the original buffer, and return the new buffer.
5858

5959
and one read-only accessor
6060
- `immutable: boolean` -- is this buffer immutable, or can its contents be changed?
@@ -131,15 +131,6 @@ No, TypedArray index properties should continue to track the state of the underl
131131
</dd>
132132

133133

134-
<dt>
135-
136-
Should `transferToImmutable` support a `newByteLength` argument?
137-
</dt>
138-
<dd>
139-
https://github.com/tc39/proposal-immutable-arraybuffer/issues/15
140-
</dd>
141-
142-
143134
<dt>
144135

145136
Should ArrayBuffers support zero-copy slices (e.g., `arrayBuffer.sliceToImmutable()`)?

0 commit comments

Comments
 (0)