Files
Kmake/test/fixtures/wpt/streams/transferable/resources/receiving-shared-worker.js
2026-05-26 23:36:42 -07:00

12 lines
288 B
JavaScript

'use strict';
importScripts('/resources/testharness.js', 'helpers.js');
onconnect = evt => {
const port = evt.source;
const promise = testMessageEvent(port);
port.start();
promise
.then(() => port.postMessage('OK'))
.catch(err => port.postMessage(`BAD: ${err}`));
};