Bug 216841 - new URL('http://x', undefined) should not throw an error
Summary: new URL('http://x', undefined) should not throw an error
Status: NEW
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: 2020-09-29 13:03 PDT (History)
2 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 Michael[tm] Smith 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>