Skip to content

Commit

Permalink
Request/Response's clone() realm
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored Nov 2, 2018
1 parent 085c8a8 commit e5ba0a8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions WebIDL/current-realm.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@
}, val[0])
})

;["Request", "Response"].forEach(val => {
test(() => {
const obj = new self[0][val]("about:blank");
assert_global(obj);

const cloneObj = obj.clone();
assert_global(cloneObj);

const involvedCloneObj = self[val].prototype["clone"].call(cloneObj);
assert_global(cloneObj);
}, val)
})

// Note: these are not [NewObject] and can be cached. But across globals?
;[["getElementsByTagName", "x"],
["getElementsByTagNameNS", null, "x"],
Expand Down

0 comments on commit e5ba0a8

Please sign in to comment.