Skip to content

Commit 9607f36

Browse files
Return immediately if length is 0
1 parent c4abf28 commit 9607f36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.bs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9298,6 +9298,7 @@ a reference to the same object that the IDL value represents.
92989298
1. Let |arrayBuffer| be |bufferSource|.
92999299
1. Let |offset| be 0.
93009300
1. Let |length| be |bufferSource|'s [=BufferSource/byte length=].
9301+
1. If |length| is 0, then return the empty [=byte sequence=].
93019302
1. If |bufferSource| is a [=buffer view type=] instance:
93029303
1. Set |arrayBuffer| to |bufferSource|'s [=underlying buffer=].
93039304
1. Set |offset| to |bufferSource|'s [=ArrayBufferView/byte offset=].

0 commit comments

Comments
 (0)