Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
    • /html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.html - WPT Dashboard Interop Dashboard
    • /html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.serviceworker.html - WPT Dashboard Interop Dashboard
// META: global=window,serviceworker
test(() => {
// See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()`
const sab = new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer;
const ta = new Int32Array(sab);
assert_throws_js(TypeError, () => {
Atomics.wait(ta, 0, 0, 10);
});
}, `[[CanBlock]] in a ${self.constructor.name}`);