Bug 216841

Summary: new URL('http://x', undefined) should not throw an error
Product: WebKit Reporter: Дилян Палаузов <dpa-webkit>
Component: PlatformAssignee: 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   

Description Дилян Палаузов 2020-09-22 13:02:30 PDT
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.
Comment 1 Alexey Proskuryakov 2020-09-22 15:33:07 PDT
I cannot reproduce this is Safari 14. Maybe already fixed?
Comment 2 sideshowbarker 2020-09-22 21:27:27 PDT
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.
Comment 3 Radar WebKit Bug Importer 2020-09-29 13:03:19 PDT
<rdar://problem/69760165>
Comment 4 Yusuke Suzuki 2022-01-25 09:24:45 PST
Yes, it is fixed. Let's add a regression test for this.
Comment 5 Sam Sneddon [:gsnedders] 2022-07-04 22:34:18 PDT

*** This bug has been marked as a duplicate of bug 216115 ***