Skip to content

Specify a maximal depth of backtracking for RegExp #3166

Open
@annevk

Description

@annevk

JSC currently enforces a limit. Other engines don't, but their host does enforce a limit for <input type=pattern>. Consider defining this limit directly in ECMAScript instead.

If this limit is not defined directly in ECMAScript, we would still need a host hook for it, at least for <input type=pattern>, though potentially we could instead enforce it in HTML for the web platform in general.

See whatwg/html#9469 for context.

cc @schuay @mathiasbynens @vinhill @msaboff

Metadata

Metadata

Assignees

No one assigned

    Labels

    layeringaffects the public spec interface and may require updates to integrating specsneeds consensusThis needs committee consensus before it can be eligible to be merged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions