From 39c24847ef9dddab0d482d4dfe0d6b277dee74f6 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Mon, 13 Jan 2025 01:31:24 -0500 Subject: [PATCH] Editorial: Try to improve note formatting --- spec.emu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.emu b/spec.emu index 64f769e..c3d88b7 100644 --- a/spec.emu +++ b/spec.emu @@ -293,7 +293,7 @@ contributors: Mark S. Miller, Richard Gibson

It performs the following steps when called:

1. Let _target_ be the *this* value. - 1. NOTE: `Let _taRecord_ be ? ValidateTypedArray(_O_, ~seq-cst~, ~write~).` 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. + 1. 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. 1. Perform ? RequireInternalSlot(_target_, [[TypedArrayName]]). 1. Assert: _target_ has a [[ViewedArrayBuffer]] internal slot. 1. If IsImmutableBuffer(_target_.[[ViewedArrayBuffer]]) is *true*, throw a *TypeError* exception.