chromium/third_party/blink/web_tests/external/wpt/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-dictionary.js

onmessage = (event) => {
  try {
    postMessage(event.data, {transfer: [event.data]});
  } catch(e) {
    postMessage(''+e);
  }
}