5 <title>Test Private Fields
</title>
6 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
7 <script type=
"application/javascript">
9 SimpleTest.waitForExplicitFinish();
11 let worker = new Worker('private_field_worker.js');
14 worker.onmessage = function(e) {
15 is(e.data, allocated,
"correctly allocated private field-containing-class");
19 worker.postMessage(
"allocate"); allocated++;
20 worker.postMessage(
"count");
21 info(
"Messages posted");