Skip to content

Implement String.prototype.replaceAll #638

@classilla

Description

@classilla

This actually could be useful for some of the other work we're doing. A simple-minded version would take str_replace in jsstr.cpp and make one that loops around. It should check that if it got a RegExp, that the global flag were set. This wouldn't be super fast but it would be a working first pass.

https://bugzilla.mozilla.org/show_bug.cgi?id=1540021
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions