Skip to content

Commit 2a74147

Browse files
committed
Editorial: Replace an unnecessary check with an assertion
Fixes tc39#48
1 parent df112ba commit 2a74147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.emu

+1-1
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ contributors: Mark S. Miller, Richard Gibson
844844
1. If IsSharedArrayBuffer(_O_) is *true*, throw a *TypeError* exception.
845845
1. Let _newByteLength_ be ? ToIndex(_newLength_).
846846
1. If IsDetachedBuffer(_O_) is *true*, throw a *TypeError* exception.
847-
1. <ins>If IsImmutableBuffer(_O_) is *true*, throw a *TypeError* exception.</ins>
847+
1. <ins>Assert: IsImmutableBuffer(_O_) is *false*.</ins>
848848
1. If _newByteLength_ > _O_.[[ArrayBufferMaxByteLength]], throw a *RangeError* exception.
849849
1. Let _hostHandled_ be ? HostResizeArrayBuffer(_O_, _newByteLength_).
850850
1. If _hostHandled_ is ~handled~, return *undefined*.

0 commit comments

Comments
 (0)