Files
Kmake/test/fixtures/wpt/streams/transferable/resources/receiving-shared-worker.js

12 lines
288 B
JavaScript
Raw Normal View History

2026-05-26 23:36:42 -07:00
'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}`));
};