Skip to content

Commit 39c2484

Browse files
committed
Editorial: Try to improve note formatting
1 parent 32921f6 commit 39c2484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.emu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ contributors: Mark S. Miller, Richard Gibson
293293
<p>It performs the following steps when called:</p>
294294
<emu-alg>
295295
1. Let _target_ be the *this* value.
296-
1. <ins>NOTE: `Let _taRecord_ be ? ValidateTypedArray(_O_, ~seq-cst~<ins>, ~write~</ins>).` here would observably change the observable calls into user code and thrown error when IsTypedArrayOutOfBounds returns *true* and _offset_ is negative. Such a change should be pursued.</ins>
296+
1. <ins>NOTE: The following steps could be simplified by using ? ValidateTypedArray(_target_, ~seq-cst~, ~write~) and refactoring SetTypedArrayFromTypedArray and SetTypedArrayFromArrayLike to accept the result as input, but that would observably change the calls into user code and thrown error when IsTypedArrayOutOfBounds returns *true* and _offset_ is negative. Regardless, such a change is still worth pursuing if possible.</ins>
297297
1. Perform ? RequireInternalSlot(_target_, [[TypedArrayName]]).
298298
1. Assert: _target_ has a [[ViewedArrayBuffer]] internal slot.
299299
1. <ins>If IsImmutableBuffer(_target_.[[ViewedArrayBuffer]]) is *true*, throw a *TypeError* exception.</ins>

0 commit comments

Comments
 (0)