Sign in
webkit
/
WebKit
/
d158dceef24649669aba9fdeae8c00646ba7bdc2
/
.
/
LayoutTests
/
fast
/
workers
/
resources
/
termination-with-port-messages.js
blob: a827db357e2305b32716c447dc70883b8ff3184a [
file
] [
log
] [
blame
]
function
echo
(
evt
)
{
evt
.
target
.
postMessage
(
evt
.
data
);
}
onmessage
=
function
(
evt
)
{
evt
.
ports
[
0
].
onmessage
=
echo
;
evt
.
ports
[
0
].
start
();
}