Sign in
webkit
/
WebKit
/
36b74c3900290f2598b1d40cf6065a7028fc4a34
/
.
/
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
));
};
}