@@ -77,7 +77,8 @@ class Response {
7777
7878    webidl . argumentLengthCheck ( arguments ,  1 ,  {  header : 'Response.redirect'  } ) 
7979
80-     url  =  webidl . converters . USVString ( url ) 
80+     // DOMString is used because the value is converted to a USVString in `new URL()`. 
81+     url  =  webidl . converters . DOMString ( url ) 
8182    status  =  webidl . converters [ 'unsigned short' ] ( status ) 
8283
8384    // 1. Let parsedURL be the result of parsing url with current settings 
@@ -120,7 +121,7 @@ class Response {
120121    } 
121122
122123    if  ( body  !==  null )  { 
123-       body  =  webidl . converters . BodyInit ( body ) 
124+       body  =  webidl . converters . BodyInit_DOMString ( body ) 
124125    } 
125126
126127    init  =  webidl . converters . ResponseInit ( init ) 
@@ -516,9 +517,10 @@ webidl.converters.URLSearchParams = webidl.interfaceConverter(
516517) 
517518
518519// https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit 
519- webidl . converters . XMLHttpRequestBodyInit  =  function  ( V )  { 
520+ 
521+ webidl . converters . XMLHttpRequestBodyInit_DOMString  =  function  ( V )  { 
520522  if  ( typeof  V  ===  'string' )  { 
521-     return  webidl . converters . USVString ( V ) 
523+     return  webidl . converters . DOMString ( V ) 
522524  } 
523525
524526  if  ( isBlobLike ( V ) )  { 
@@ -541,7 +543,7 @@ webidl.converters.XMLHttpRequestBodyInit = function (V) {
541543} 
542544
543545// https://fetch.spec.whatwg.org/#bodyinit 
544- webidl . converters . BodyInit  =  function  ( V )  { 
546+ webidl . converters . BodyInit_DOMString  =  function  ( V )  { 
545547  if  ( V  instanceof  ReadableStream )  { 
546548    return  webidl . converters . ReadableStream ( V ) 
547549  } 
@@ -552,7 +554,7 @@ webidl.converters.BodyInit = function (V) {
552554    return  V 
553555  } 
554556
555-   return  webidl . converters . XMLHttpRequestBodyInit ( V ) 
557+   return  webidl . converters . XMLHttpRequestBodyInit_DOMString ( V ) 
556558} 
557559
558560webidl . converters . ResponseInit  =  webidl . dictionaryConverter ( [ 
0 commit comments