chromium/third_party/blink/web_tests/external/wpt/workers/modules/resources/static-import-data-url-block-cross-origin.js

import * as module from "data:text/javascript, export const importedModules = ['export-block-cross-origin.js'];";

if ('DedicatedWorkerGlobalScope' in self &&
    self instanceof DedicatedWorkerGlobalScope) {
  self.onmessage = e => {
    e.target.postMessage(module.importedModules);
  };
} else if (
    'SharedWorkerGlobalScope' in self &&
    self instanceof SharedWorkerGlobalScope) {
  self.onconnect = e => {
    e.ports[0].postMessage(module.importedModules);
  };
}