chromium/third_party/blink/web_tests/external/wpt/workers/semantics/multiple-workers/exposure.any.js

// META: global=window,worker

test(() => {
  const assert = "ServiceWorkerGlobalScope" in globalThis ? assert_equals : assert_not_equals;
  assert(globalThis.Worker, undefined);
}, "Worker exposure");

test(() => {
  const assert = globalThis.GLOBAL.isWindow() ? assert_not_equals : assert_equals;
  assert(globalThis.SharedWorker, undefined);
}, "SharedWorker exposure");