Sign in
cobalt
/
cobalt
/
e07b4a9757769bc8dad578490f9a080e13bbeb48
/
.
/
src
/
third_party
/
web_platform_tests
/
workers
/
workers.js
blob: d2887df8b546bf277a67ac206a5a09ff27db7342 [
file
] [
log
] [
blame
]
function
listenForMessages
(
t
,
worker
)
{
worker
.
addEventListener
(
'message'
,
t
.
step_func
(
function
(
e
)
{
if
(
e
.
data
===
'done'
)
{
t
.
done
();
}
assert_unreached
(
e
.
data
);
}),
false
);
}