microsoft/hermes-windows

URLSearchParams missing functionality

Opened this issue · 0 comments

Bug Description

I'm trying to use the URLSearchParams API to parse a query string.

However, the only functionality that seems to work is passing an object to the URLSearchParams constructor and it's toString method.

Other operations such as passing a query string into the constructor, returns an empty _searchParams object. Furthermore, other parts of the API like the get and has methods throw a not implemented error.

Is the full API not available here?


Hermes git revision (if applicable):

  • Microsoft.JavaScript.Hermes.Fat.0.1.20

React Native version:

  • "react-native": "0.72.6",
  • "react-native-windows": "0.72.30",

OS:

  • Windows 11

Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64):

  • x86

Steps To Reproduce

const paramStr = "foo=bar&foo=baz";
const searchParams = new URLSearchParams(paramStr);

console.log(searchParams.get("foo")); //should return first value "bar", throws not implemented error.