summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/streams/transferable/resources/receiving-worker.js
blob: 4ebb9c5f8fcec29cee822ac24187912fb913af09 (plain)
1
2
3
4
5
6
7
'use strict';
importScripts('/resources/testharness.js', 'helpers.js');

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