summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/wasm/webapi/esm-integration/worker-import.tentative.html
blob: 739f2d3f28cc68bd07de0986c6073c17701933a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<title>Testing import of WebAssembly from JavaScript worker</title>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script type=module>
setup({ single_test: true });
const worker = new Worker("resources/worker.js", { type: "module" });
worker.onmessage = (msg) => {
  assert_equals(msg.data, 42);
  done();
}
</script>