Location.assign and Location.replace should accept `URL` object for `url`
Closed this issue · 0 comments
silverwind commented
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