mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-02-08 01:31:00 +00:00
9 lines
200 B
JavaScript
9 lines
200 B
JavaScript
function listenForMessages(t, worker) {
|
|
worker.addEventListener('message', t.step_func(function(e) {
|
|
if (e.data === 'done') {
|
|
t.done();
|
|
}
|
|
assert_unreached(e.data);
|
|
}), false);
|
|
}
|