5 <title>Test FinalizationRegistry works in workers
</title>
6 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
7 <script type=
"application/javascript">
9 SimpleTest.waitForExplicitFinish();
11 let worker = new Worker('finalizationRegistry_worker.js');
13 worker.onevent = (event) =
> {
14 console.log(event.message);
18 worker.onmessage = (event) =
> {
21 worker.postMessage('checkResults');
25 ok(true,
"Tests passed");
30 console.log(event.data);
35 worker.postMessage('startTest');
39 <body onload=
"go()"></body>