Skip to content

Commit fe6c68c

Browse files
committed
Editorial: Check receiver immutability before detach key
1 parent b88859f commit fe6c68c

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
@@ -504,9 +504,9 @@ contributors: Mark S. Miller, Richard Gibson
504504
</dl>
505505
<emu-alg>
506506
1. Assert: IsSharedArrayBuffer(_arrayBuffer_) is *false*.
507+
1. <ins>If IsImmutableBuffer(_arrayBuffer_) is *true*, throw a *TypeError* exception.</ins>
507508
1. If _key_ is not present, set _key_ to *undefined*.
508509
1. If _arrayBuffer_.[[ArrayBufferDetachKey]] is not _key_, throw a *TypeError* exception.
509-
1. <ins>If IsImmutableBuffer(_arrayBuffer_) is *true*, throw a *TypeError* exception.</ins>
510510
1. Set _arrayBuffer_.[[ArrayBufferData]] to *null*.
511511
1. Set _arrayBuffer_.[[ArrayBufferByteLength]] to 0.
512512
1. Return ~unused~.

0 commit comments

Comments
 (0)