chromium/third_party/blink/web_tests/external/wpt/streams/transferable/resources/receiving-worker.js

'use strict';
importScripts('/resources/testharness.js', 'helpers.js');

const promise = testMessageEvent(self);
promise
    .then(() => postMessage('OK'))
    .catch(err => postMessage(`BAD: ${err}`));