blob: fd6662516afbd3d8b2e1a511978e6c67f034a59c [file] [log] [blame]
This is a testharness.js-based test.
PASS Message sent to closed port should not arrive.
PASS Message sent from closed port should not arrive.
PASS Message sent to closed port from transferred port should not arrive.
PASS Inflight messages should be delivered even when sending port is closed afterwards.
PASS Close in onmessage should not cancel inflight messages.
FAIL close() detaches a MessagePort (but not the one its entangled with) assert_throws: function "() => self.postMessage(null, "*", [c.port1])" did not throw
Harness: the test ran to completion.