1 export function checkFromESM(ok, is) {
2 var url = new URL("https://www.example.com");
3 is(url.href, "https://www.example.com/", "ESM should have URL");
5 var url2 = new URL("/foobar", url);
8 "https://www.example.com/foobar",
9 "ESM should have URL - based on another URL"
12 var blob = new Blob(["a"]);
13 url = URL.createObjectURL(blob);
14 ok(url, "URL is created!");
18 is(u.origin, "null", "Url doesn't have an origin if created in a ESM");
20 URL.revokeObjectURL(url);
21 ok(true, "URL is revoked");