Bug 216841 - new URL('http://x', undefined) should not throw an error
Summary: new URL('http://x', undefined) should not throw an error
Status: RESOLVED DUPLICATE of bug 216115
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: Safari 13
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-09-22 13:02 PDT by Дилян Палаузов
Modified: 2022-07-04 22:34 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***