From e95b6a0c49382856fa5b71bebbe99b909fb9f4f9 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Fri, 2 May 2025 12:32:49 -0400 Subject: [PATCH] Normative: Reject SharedArrayBuffer receiver in ArrayBuffer.prototype.immutable getter Fixes #49 --- spec.emu | 1 + 1 file changed, 1 insertion(+) diff --git a/spec.emu b/spec.emu index 7a76f8d..d2b3cc9 100644 --- a/spec.emu +++ b/spec.emu @@ -830,6 +830,7 @@ contributors: Mark S. Miller, Richard Gibson 1. Let _O_ be the *this* value. 1. Perform ? RequireInternalSlot(_O_, [[ArrayBufferData]]). + 1. If IsSharedArrayBuffer(_O_) is *true*, throw a *TypeError* exception. 1. Return IsImmutableBuffer(_O_).