Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

287 B
Raw Blame
// META: global=sharedworker
const t = async_test("Make sure that MessageEvent.source is properly set in connect event.");
onconnect = t.step_func_done((event) => {
  assert_equals(Object.getPrototypeOf(event), MessageEvent.prototype);
  assert_equals(event.source, event.ports[0]);
});