Skip to content

Commit 25f9744

Browse files
dewren99ljharb
authored andcommitted
Normative: Disallow ArrayBuffers bigger than 2**53 (#3052)
1 parent 1153003 commit 25f9744

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4507,6 +4507,7 @@ <h1>
45074507
<dl class="header">
45084508
</dl>
45094509
<emu-alg>
4510+
1. If _size_ > 2<sup>53</sup> - 1, throw a *RangeError* exception.
45104511
1. Let _db_ be a new Data Block value consisting of _size_ bytes. If it is impossible to create such a Data Block, throw a *RangeError* exception.
45114512
1. Set all of the bytes of _db_ to 0.
45124513
1. Return _db_.

0 commit comments

Comments
 (0)