MCPcopy Create free account
hub / github.com/nodejs/node / allowOOM

Function allowOOM

deps/v8/test/mjsunit/wasm/atomics-memory64.js:9–17  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

7d8.file.execute("test/mjsunit/wasm/wasm-module-builder.js");
8
9function allowOOM(fn) {
10 try {
11 fn();
12 } catch (e) {
13 const is_oom =
14 (e instanceof RangeError) && e.message.includes('Out of memory');
15 if (!is_oom) throw e;
16 }
17}
18
19function CreateBigSharedWasmMemory64(num_pages) {
20 let builder = new WasmModuleBuilder();

Callers 1

Calls 2

includesMethod · 0.80
fnFunction · 0.70

Tested by

no test coverage detected