@ -672,8 +672,7 @@ class URLSearchParams {
throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
}
if ( arguments . length < 2 ) {
throw new TypeError (
'Both `name` and `value` arguments need to be specified' ) ;
throw new TypeError ( '"name" and "value" arguments must be specified' ) ;
}
name = String ( name ) ;
@ -687,7 +686,7 @@ class URLSearchParams {
throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
}
if ( arguments . length < 1 ) {
throw new TypeError ( 'The `name` argument needs to be specified' ) ;
throw new TypeError ( '"name" argument must be specified' ) ;
}
const list = this [ searchParams ] ;
@ -708,8 +707,7 @@ class URLSearchParams {
throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
}
if ( arguments . length < 2 ) {
throw new TypeError (
'Both `name` and `value` arguments need to be specified' ) ;
throw new TypeError ( '"name" and "value" arguments must be specified' ) ;
}
const list = this [ searchParams ] ;
@ -749,7 +747,7 @@ class URLSearchParams {
throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
}
if ( arguments . length < 1 ) {
throw new TypeError ( 'The `name` argument needs to be specified' ) ;
throw new TypeError ( '"name" argument must be specified' ) ;
}
const list = this [ searchParams ] ;
@ -767,7 +765,7 @@ class URLSearchParams {
throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
}
if ( arguments . length < 1 ) {
throw new TypeError ( 'The `name` argument needs to be specified' ) ;
throw new TypeError ( '"name" argument must be specified' ) ;
}
const list = this [ searchParams ] ;
@ -786,7 +784,7 @@ class URLSearchParams {
throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
}
if ( arguments . length < 1 ) {
throw new TypeError ( 'The `name` argument needs to be specified' ) ;
throw new TypeError ( '"name" argument must be specified' ) ;
}
const list = this [ searchParams ] ;
@ -814,8 +812,8 @@ class URLSearchParams {
if ( ! this || ! ( this instanceof URLSearchParams ) ) {
throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
}
if ( arguments . length < 1 ) {
throw new TypeError ( 'The `callback` argument needs to be specified ' ) ;
if ( typeof callback !== 'function' ) {
throw new TypeError ( '"callback" argument must be a function ' ) ;
}
let list = this [ searchParams ] ;