tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

requires-success.any.js (376B)


      1 // META: global=dedicatedworker,sharedworker
      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_equals(Atomics.wait(ta, 0, 0, 10), "timed-out");
      9 }, `[[CanBlock]] in a ${self.constructor.name}`);