@@ -672,8 +672,7 @@ class URLSearchParams {
672672 throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
673673 }
674674 if ( arguments . length < 2 ) {
675- throw new TypeError (
676- 'Both `name` and `value` arguments need to be specified' ) ;
675+ throw new TypeError ( '"name" and "value" arguments must be specified' ) ;
677676 }
678677
679678 name = String ( name ) ;
@@ -687,7 +686,7 @@ class URLSearchParams {
687686 throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
688687 }
689688 if ( arguments . length < 1 ) {
690- throw new TypeError ( 'The ` name` argument needs to be specified' ) ;
689+ throw new TypeError ( '" name" argument must be specified' ) ;
691690 }
692691
693692 const list = this [ searchParams ] ;
@@ -708,8 +707,7 @@ class URLSearchParams {
708707 throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
709708 }
710709 if ( arguments . length < 2 ) {
711- throw new TypeError (
712- 'Both `name` and `value` arguments need to be specified' ) ;
710+ throw new TypeError ( '"name" and "value" arguments must be specified' ) ;
713711 }
714712
715713 const list = this [ searchParams ] ;
@@ -749,7 +747,7 @@ class URLSearchParams {
749747 throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
750748 }
751749 if ( arguments . length < 1 ) {
752- throw new TypeError ( 'The ` name` argument needs to be specified' ) ;
750+ throw new TypeError ( '" name" argument must be specified' ) ;
753751 }
754752
755753 const list = this [ searchParams ] ;
@@ -767,7 +765,7 @@ class URLSearchParams {
767765 throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
768766 }
769767 if ( arguments . length < 1 ) {
770- throw new TypeError ( 'The ` name` argument needs to be specified' ) ;
768+ throw new TypeError ( '" name" argument must be specified' ) ;
771769 }
772770
773771 const list = this [ searchParams ] ;
@@ -786,7 +784,7 @@ class URLSearchParams {
786784 throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
787785 }
788786 if ( arguments . length < 1 ) {
789- throw new TypeError ( 'The ` name` argument needs to be specified' ) ;
787+ throw new TypeError ( '" name" argument must be specified' ) ;
790788 }
791789
792790 const list = this [ searchParams ] ;
@@ -814,8 +812,8 @@ class URLSearchParams {
814812 if ( ! this || ! ( this instanceof URLSearchParams ) ) {
815813 throw new TypeError ( 'Value of `this` is not a URLSearchParams' ) ;
816814 }
817- if ( arguments . length < 1 ) {
818- throw new TypeError ( 'The ` callback` argument needs to be specified ' ) ;
815+ if ( typeof callback !== 'function' ) {
816+ throw new TypeError ( '" callback" argument must be a function ' ) ;
819817 }
820818
821819 let list = this [ searchParams ] ;
0 commit comments