summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/wasm/serialization/module/nested-worker-success.any.js
blob: 84fbd92a29c9ef2784a01508b6f3e70962857dc5 (plain)
1
2
3
4
5
6
7
8
9
// META: global=dedicatedworker,sharedworker
// META: script=resources/test-incrementer.js
"use strict";

promise_test(t => {
  const worker = new Worker("resources/incrementer-worker.js");

  return testSharingViaIncrementerScript(t, worker, "parent worker", worker, "sub-worker");
}, "postMessaging to a dedicated sub-worker allows them to see each others' modifications");