Skip to content

[0.77] Fix Android JSC compatibility - replaceAll -> replace #703

@cipolleschi

Description

@cipolleschi

Target Branch(es)

0.77

Link to commit or PR to be picked

facebook/react-native@b5b9e03

Description

JSC for Android does not implement String.prototype.replaceAll:
facebook/react-native#47466 introduced a use of it into runtime code, breaking JSC compatibility.

This replaces it with replace. Since the argument is already a regex with a g modifier, replaceAll wasn't necessary anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions