Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
URL: passing DOMException.prototype to URLSearchParams now throws
As of whatwg/webidl#378, both new URLSearchParams(DOMException.prototype) DOMException.prototype.toString() are supposed to throw an exception due to brand checks in properties such as "name" and "message", which meant compliant implementations were always failing one of the tests here. Fix it by passing a `DOMException` instead: it has all the constants we need and passes the required property checks. Also assert that the previous behavior throws a TypeError.
- Loading branch information