Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
URL: Do not prepend baseUrl if the URL is not a relative URL (#26009)
Summary: Fix for bug #26006 URL with base is always used, even when absolute URL is provided ## Changelog [Javascript] [Fixed] - `URL`: Base url value is ignored when the input url is not a relative url. Pull Request resolved: #26009 Test Plan: `new URL('http://github.com', 'http://google.com')` now returns `http://github.com/` Added a test case to `URL-test.js` to verify the same. Differential Revision: D16781921 Pulled By: cpojer fbshipit-source-id: 038aca3610e34f513f603e8993f9a925b7d28626
- Loading branch information