summaryrefslogtreecommitdiff
path: root/test/parallel/test-whatwg-url-searchparams-values.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-whatwg-url-searchparams-values.js')
-rw-r--r--test/parallel/test-whatwg-url-searchparams-values.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-whatwg-url-searchparams-values.js b/test/parallel/test-whatwg-url-searchparams-values.js
index 96f1a0fddb..e44b7f5e11 100644
--- a/test/parallel/test-whatwg-url-searchparams-values.js
+++ b/test/parallel/test-whatwg-url-searchparams-values.js
@@ -27,17 +27,17 @@ assert.deepStrictEqual(values.next(), {
done: true
});
-assert.throws(() => {
+common.expectsError(() => {
values.next.call(undefined);
-}, common.expectsError({
+}, {
code: 'ERR_INVALID_THIS',
type: TypeError,
message: 'Value of "this" must be of type URLSearchParamsIterator'
-}));
-assert.throws(() => {
+});
+common.expectsError(() => {
params.values.call(undefined);
-}, common.expectsError({
+}, {
code: 'ERR_INVALID_THIS',
type: TypeError,
message: 'Value of "this" must be of type URLSearchParams'
-}));
+});