requires-failure.https.any.js (386B)
1 // META: global=window,serviceworker 2 3 test(() => { 4 // See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()` 5 const sab = new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer; 6 const ta = new Int32Array(sab); 7 8 assert_throws_js(TypeError, () => { 9 Atomics.wait(ta, 0, 0, 10); 10 }); 11 }, `[[CanBlock]] in a ${self.constructor.name}`);