Bug 216841
| Summary: | new URL('http://x', undefined) should not throw an error | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Дилян Палаузов <dpa-webkit> |
| Component: | Platform | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | mike, webkit-bug-importer, ysuzuki |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 13 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Дилян Палаузов
As of https://github.com/zloirock/core-js/commit/8699b9a3024c1703d7b158ad3236288b38633af6 and https://github.com/zloirock/core-js/issues/656 in WebKit 2.28.4
new URL('http://x', undefined)
throws a TypeError, but in Firefox 89, Chromium 85, nodejs 14.9 it does not throw an error.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
I cannot reproduce this is Safari 14. Maybe already fixed?
sideshowbarker
In my Safari Version 14.0 (15610.1.28.1.9) `new URL('http://x', undefined)` does throw.
But in current Safari Technology Preview (Release 113, 15610.2.3.1), it doesn’t throw.
Radar WebKit Bug Importer
<rdar://problem/69760165>
Yusuke Suzuki
Yes, it is fixed. Let's add a regression test for this.
Sam Sneddon [:gsnedders]
*** This bug has been marked as a duplicate of bug 216115 ***