Skip to content

Subclass RegExp rather than using __proto__ #134

Open
@brandonkelly

Description

@brandonkelly

Firefox is giving me this notice in the console when using xregexp:

mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (xregexp-all.js line 2732)

Referenced line:

regex.__proto__ = XRegExp.prototype;

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions