@@ -9324,6 +9324,11 @@ a reference to the same object that the IDL value represents.
93249324 1. Let |jsView| be the result of [=converted to a JavaScript value|converting=] |view| to
93259325 a JavaScript value.
93269326 1. Return |jsView|.\[[ByteOffset]].
9327+
9328+ <p class="note">These steps are equivalent to
9329+ {{%TypedArray%/byteOffset|%TypedArray%.prototype.byteOffset}} (for a
9330+ [=typed array type=] instance) or {{DataView/byteOffset|DataView.prototype.byteOffset}}
9331+ (for a {{DataView}}).
93279332</div>
93289333
93299334<div algorithm>
@@ -9339,17 +9344,24 @@ a reference to the same object that the IDL value represents.
93399344 Seq-Cst).
93409345 1. If [$IsTypedArrayOutOfBounds$](|taRecord|) is true, then return 0.
93419346 1. Return [$TypedArrayByteLength$](|taRecord|).
9347+ <p class="note">The above substeps are equivalent to
9348+ {{%TypedArray%/byteLength|%TypedArray%.prototype.byteLength}}.
93429349 1. Otherwise:
93439350 1. [=/Assert=]: |jsBufferSource| is a {{DataView}}.
93449351 1. Let |viewRecord| be [$MakeDataViewWithBufferWitnessRecord$](|jsBufferSource|,
93459352 Seq-Cst).
93469353 1. If [$IsViewOutOfBounds$](|viewRecord|) is true, then [=JavaScript/throw=] a
93479354 <l spec=ecmascript>{{TypeError}}</l>.
93489355 1. Return [$GetViewByteLength$](|viewRecord|).
9356+ <p class="note">The above substeps are equivalent to
9357+ {{DataView/byteLength|DataView.prototype.byteLength}}.
93499358 1. Otherwise:
93509359 1. [=/Assert=]: |jsBufferSource| is an {{ArrayBuffer}} or a {{SharedArrayBuffer}}.
93519360 1. If [$IsDetachedBuffer$](|jsBufferSource|) is true, then return 0.
93529361 1. Return [$ArrayBufferByteLength$](|jsBufferSource|, Seq-Cst).
9362+ <p class="note">The above substeps are equivalent to
9363+ {{ArrayBuffer/byteLength|ArrayBuffer.prototype.byteLength}} or
9364+ {{SharedArrayBuffer/byteLength|SharedArrayBuffer.prototype.byteLength}}.
93539365</div>
93549366<!-- TODO: should this be stricter around not being detached? -->
93559367
0 commit comments