Location.assign and Location.replace should accept URL
object for url
#1568
Labels
bug
Something isn't working
URL
object for url
#1568
Browsers convert the argument to these to string, so happy-dom should do too.
https://developer.mozilla.org/en-US/docs/Web/API/Location/assign
https://developer.mozilla.org/en-US/docs/Web/API/Location/replace
https://github.com/microsoft/TypeScript/blob/e6ef279403d86440600c866d53839a3e695220d3/src/lib/dom.generated.d.ts#L15107
https://github.com/microsoft/TypeScript/blob/e6ef279403d86440600c866d53839a3e695220d3/src/lib/dom.generated.d.ts#L15119
The text was updated successfully, but these errors were encountered: