1<!DOCTYPE html> 2<title>Testing WebAssembly worker</title> 3 4<script src="/resources/testharness.js"></script> 5<script src="/resources/testharnessreport.js"></script> 6<script type=module> 7setup({ single_test: true }); 8const worker = new Worker("resources/worker.wasm", { type: "module" }); 9worker.onmessage = (msg) => { 10 assert_equals(msg, 42); 11 done(); 12} 13</script> 14