Skip to content

Commit

Permalink
Use sourceFrame.contentWindow's TyperError constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrodesser-Igalia committed Apr 8, 2024
1 parent b617318 commit dfd95a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@
document.body.append(sourceElement);
// Now `sourceElement`'s node document's global belongs to a TT-realm.

assert_throws_js(TypeError, () => {
assert_throws_js(sourceFrame.contentWindow.TypeError, () => {
sourceElement.setAttributeNode(sourceAttr);
});
assert_throws_js(TypeError, () => {
assert_throws_js(sourceFrame.contentWindow.TypeError, () => {
sourceElement.setAttributeNS(
sourceAttr.namespaceURI,
sourceAttr.name,
Expand Down

0 comments on commit dfd95a9

Please sign in to comment.