Skip to content

RegExp CharacterRange early error #3563

Open
@Jack-Works

Description

@Jack-Works
eshost -s -e '/[\d-\D]/.test("1")'
#### engine262

SyntaxError: Invalid class range

#### javascriptcore, spidermonkey, v8
true

#### xs

SyntaxError: [\d-\D] invalid range

Per spec, it should be an Early Error:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions