bug1877586.js (358B)
1 // |jit-test| allow-oom 2 3 // Keep this in sync with js::ThreadType::THREAD_TYPE_PROMISE_TASK 4 const THREAD_TYPE_PROMISE_TASK = 8; 5 6 try { 7 for (let i = 0; i < 5; i++) { 8 WebAssembly.instantiateStreaming( 9 wasmTextToBinary('(module (func) (export "" (func 0)))') 10 ); 11 } 12 } catch (e) {} 13 oomAtAllocation(7, THREAD_TYPE_PROMISE_TASK);