Sign in
webkit
/
WebKit
/
b0d7f9b249dd6483d6c7bc4f13c440c0842b7127
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
workers
/
support
/
WorkerFetchURL.js
blob: 4ad700bcce464611b3c3f07e8555b4c6ccb6cfd6 [
file
] [
log
] [
blame
]
onconnect
=
e
=>
{
let port
=
e
.
ports
[
0
];
port
.
onmessage
=
(
e
)
=>
{
fetch
(
e
.
data
)
.
then
(
response
=>
response
.
text
())
.
then
(
text
=>
port
.
postMessage
(
'Worker reply:'
+
text
));
};
}