Skip to content

RegExp - accessors are mis-documented as (own) properties #19524

@ghost

Description

For example, see https://tc39.es/ecma262/multipage/text-processing.html#sec-get-regexp.prototype.flags.

MDN documents RegExp instance properties, that are actually accessor functions. They also seem to all lack setters, but this is mistakenly documented by calling them "read-only," and giving a property descriptor, which shouldn't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions