2 postMessage({ type
: "status", status
: !!a
, msg
});
5 onmessage = function () {
7 var url
= new URL("http://www.example.com");
8 ok(url
, "URL created");
16 ok(status
, "url.href = 42 should throw");
18 url
.href
= "http://www.example.org";
19 ok(true, "url.href should not throw");
27 ok(status
, "new URL(42) should throw");
31 new URL("http://www.example.com", "42");
35 ok(status
, "new URL(something, 42) should throw");
37 postMessage({ type
: "finish" });