Skip to content

Commit

Permalink
Merge d30b988 into 25581e4
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Kubo da Costa authored Jul 14, 2017
2 parents 25581e4 + d30b988 commit 7cfea82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions url/urlsearchparams-constructor.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
}, "URLSearchParams constructor, no arguments")

test(() => {
params = new URLSearchParams(DOMException.prototype);
params = new URLSearchParams(DOMException);
assert_equals(params.toString(), "INDEX_SIZE_ERR=1&DOMSTRING_SIZE_ERR=2&HIERARCHY_REQUEST_ERR=3&WRONG_DOCUMENT_ERR=4&INVALID_CHARACTER_ERR=5&NO_DATA_ALLOWED_ERR=6&NO_MODIFICATION_ALLOWED_ERR=7&NOT_FOUND_ERR=8&NOT_SUPPORTED_ERR=9&INUSE_ATTRIBUTE_ERR=10&INVALID_STATE_ERR=11&SYNTAX_ERR=12&INVALID_MODIFICATION_ERR=13&NAMESPACE_ERR=14&INVALID_ACCESS_ERR=15&VALIDATION_ERR=16&TYPE_MISMATCH_ERR=17&SECURITY_ERR=18&NETWORK_ERR=19&ABORT_ERR=20&URL_MISMATCH_ERR=21&QUOTA_EXCEEDED_ERR=22&TIMEOUT_ERR=23&INVALID_NODE_TYPE_ERR=24&DATA_CLONE_ERR=25")
}, "URLSearchParams constructor, DOMException.prototype as argument")
assert_throws(new TypeError(), () => new URLSearchParams(DOMException.prototype),
"Constructing a URLSearchParams from DOMException.prototype should throw due to branding checks");
}, "URLSearchParams constructor, DOMException as argument")

test(() => {
params = new URLSearchParams('');
Expand Down

0 comments on commit 7cfea82

Please # to comment.