Skip to content

Commit b862bc6

Browse files
authored
Editorial: Replace an unnecessary check with an assertion (#50)
Fixes #48
1 parent d3b1cdf commit b862bc6

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
@@ -845,7 +845,7 @@ contributors: Mark S. Miller, Richard Gibson
845845
1. If IsSharedArrayBuffer(_O_) is *true*, throw a *TypeError* exception.
846846
1. Let _newByteLength_ be ? ToIndex(_newLength_).
847847
1. If IsDetachedBuffer(_O_) is *true*, throw a *TypeError* exception.
848-
1. <ins>If IsImmutableBuffer(_O_) is *true*, throw a *TypeError* exception.</ins>
848+
1. <ins>Assert: IsImmutableBuffer(_O_) is *false*.</ins>
849849
1. If _newByteLength_ > _O_.[[ArrayBufferMaxByteLength]], throw a *RangeError* exception.
850850
1. Let _hostHandled_ be ? HostResizeArrayBuffer(_O_, _newByteLength_).
851851
1. If _hostHandled_ is ~handled~, return *undefined*.

0 commit comments

Comments
 (0)