react-native/Libraries/Core
Matt Hargett 63038500a2 Flesh out the URL polyfill a bit more (#22901)
Summary:
This expands functionality of URL minimally so Apollo Server can run in React Native contexts. Add explicit-fail getters so undefined values won't get generated from the otherwise missing implemenation.

Use of URL in apollo-server here: 458bc71ead/packages/apollo-datasource-rest/src/RESTDataSource.ts (L79)

Credit to my colleague dysonpro for debugging the issue and providing the initial working stub implementation.

Changelog:
----------

Help reviewers and the release process by writing your own changelog entry. See http://facebook.github.io/react-native/docs/contributing#changelog for an example.

[INTERNAL] [ENHANCEMENT] - Support construction, toString(), and href() of URL objects.
Pull Request resolved: https://github.com/facebook/react-native/pull/22901

Differential Revision: D13690954

Pulled By: cpojer

fbshipit-source-id: 7966bc17be8af9bf656bffea5d530b1e626acfb3
2019-01-16 05:31:55 -08:00
..
Devtools Remove unused variables (#22097) 2018-11-04 10:41:46 -08:00
Timers Use `invariant` instead of `fbjs/lib/invariant` 2018-12-03 00:07:02 -08:00
__mocks__ Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
__tests__ Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ExceptionsManager.js Add js engine information in React Native error reporting 2018-09-12 14:01:50 -07:00
InitializeCore.js Use nativeQPLTimestamp for InitializeCore marker point 2018-11-09 14:14:40 -08:00
ReactNativeVersion.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ReactNativeVersionCheck.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
checkNativeVersion.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
polyfillES6Collections.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
polyfillPromise.js Remove flow-strict from polyfillPromise (#22048) 2018-11-04 01:56:39 -07:00
setUpAlert.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpBatchedBridge.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpDeveloperTools.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpErrorHandling.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpGeolocation.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpGlobals.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpRegeneratorRuntime.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpSegmentFetcher.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpSystrace.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpTimers.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpXHR.js Flesh out the URL polyfill a bit more (#22901) 2019-01-16 05:31:55 -08:00