Debian Codegraph @

js/src/jit-test/tests/typedarray/oom-allocating-arraybuffer-contents.js

raw
1 // Resolve ArrayBuffer before OOM-testing, so OOM-testing runs less code and is
2 // less fragile.
3 var AB = ArrayBuffer;
4
5 function f()
6 {
7 return new AB(256);
8 }
9
10 // Create |f|'s script before OOM-testing for the same reason.
11 f();
12
13 oomTest(f);