Description
Description
The window.URL object is available in Hermes but is otherwise un-implemented. All of the accessors have todo Errors.
react-native/packages/react-native/Libraries/Blob/URL.js
Lines 140 to 230 in 43d69ee
Steps to reproduce
const urlObj = new window.URL( validUrlString );
urlObj.hostname
// Error: URL.hostname is not implemented
React Native Version
0.73.6
Affected Platforms
Runtime - Android
Output of npx react-native info
Reproducible on all systems. The code has a baked-in Error and no implementation.
Stacktrace or Logs
This error is located at:
in SecureContext (created by Connect(SecureContext))
in Connect(SecureContext) (created by App)
in RCTView (created by View)
in View (created by App)
in App (created by RenderApp)
in Provider (created by RenderApp)
in RenderApp
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in app(RootComponent), js engine: hermes
Reproducer
https://snack.expo.dev/O0xP_moxLBNEHK9bXAXKl
It can't be reproduced in a browser folks. It can only be seen on hermes/Android so this is moot.
Screenshots and Videos
No response
Activity