Skip to content

Commit

Permalink
window.open() should throw for URL parser failures
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed May 4, 2017
1 parent 8d0b419 commit 452b800
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions url/failure.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
self.test(() => {
assert_throws(new TypeError, () => self[0].location = test.input)
}, "Location's href: " + name)

self.test(() => {
assert_throws("SyntaxError", () => self.open(test.input).close())
}, "window.open(): " + name)
}
}
</script>

0 comments on commit 452b800

Please sign in to comment.