Sign in
webkit
/
WebKit
/
896f2e1627ae91d975ee73fd9010259c3dd716cd
/
.
/
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
();
}