chromium/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/module/dynamic-import/resources/blob-url-worker.js

self.addEventListener("message", (evt) => {
  const importModule = import(evt.data);
  importModule.then(
    (module) => {
      self.postMessage({ importSucceeded: true, module: { ...module } });
    },
    (error) => {
      self.postMessage({ importSucceeded: false, errorName: error.name });
    }
  );
});