Re: [whatwg/webidl] Fix `BufferSource` algorithms for shared and resizable buffers (PR #1529)

@MattiasBuelens pushed 22 commits.

fca07732edd9f7da426350c51b34ba4f964d3584  Fix buffer source's byte length
2aa7788b968511fa43aa6ec3d93b93824e94157a  Add byte offset to ArrayBufferView
e970dde77b5edf2c65bc2d2a14b0298e16341be4  Fix writing bytes into an ArrayBufferView backed by a SharedArrayBuffer
a4e42722df835eb619e9b637dfd90d4925297859  Simplify writing into an ArrayBufferView
9c8a05c7d710b0947466074a2be78ac1312eb675  Move assert before conversion
35673eb05e24bc0006a42be3c31661009786df7e  Use ArrayBufferCopyAndDetach to transfer an ArrayBuffer
ccc662fe9c4196296ebd5fcac15b6a7986e56695  Rework "get a copy of the bytes held"
108bcd16cc961be52adfcc4656c5b23dc9947676  Use IsArrayBufferViewOutOfBounds instead
3ee617babf89e6e99e090ad1aec0e0d0757bbb41  Use SEQ-CST ordering to match ECMAScript
4b59f49c37dd52a13dbdc760b2a8647b0bf8ed3e  Use "then" only for checks with a single step
524af8099d62c2bcbd8c3c0a4c23c320bbedd5d4  Auto-link "assert"
85f283698d140c544203ac22056e62c5be16b4ae  Check IsTypedArrayOutOfBounds
c2015abc1aa5f635c36645f9eda6a27eaceabfcc  Use ArrayBufferByteLength for both ArrayBuffer and SharedArrayBuffer
e9bf3d80776a07f80254482305a1f1a738d05438  Add a "then"
a7dd1995bd0f712338d9debdb0d4aee63cbf20de  Make byte length throw if DataView is out of bounds
0ad932d274e0c4ba8281210b18dab9c87b3aed06  Check if detached before reading byte offset
d939a14103775714834bfb4c5cb89c833fca1a44  Return immediately if length is 0
a3b51b7a2575ede708bc5e1691f43ab3d79ce18a  Reorder steps
27ed179048d926814a61df24762114d5bc21ad93  Add "out of bounds" definition for ArrayBufferViews
9111634a94dc5b5a2b2028cd7f98e1d8d51941d4  Read byte offset before checking length
76d26bbd54e425f3302a64f76485a93be96869ea  Add notes for steps that mirror ECMAScript
62016232ae42dcff49c6dce9a33ccd3da4fe80ae  Remove TODO

-- 
View it on GitHub:
https://github.com/whatwg/webidl/pull/1529/changes/cf28af9956d03dc369ab0019e8f2528b4185d117..62016232ae42dcff49c6dce9a33ccd3da4fe80ae
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1529/before/cf28af9956d03dc369ab0019e8f2528b4185d117/after/6>

Received on Friday, 28 August 2026 16:49:40 UTC