mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f470e69fba
Since Angular v8, and commit b3dda0e, `parseUrl()` can be called without
`relativeTo`, thus `new URL()` can be called with `relativeTo = undefined`.
Safari does not like it and the service worker registration fails:
```js
new URL('https://angular.io/') // OK
new URL('https://angular.io/', undefined) // TypeError
```
Closes #31061
PR Close #31140