← All repos

proposal-regexp-legacy-features

Legacy static properties of the RegExp constructor in JavaScript

Browse cluster: WebAssembly Specification and Proposals
56commits
5contributors
0languages

Tech stack & purpose

This repository contains a specification draft for legacy and deprecated RegExp features in JavaScript, including static properties of the RegExp constructor such as `RegExp.$1` through `RegExp.$9` and the `RegExp.prototype.compile` method. The proposal is at stage 3 of the TC39 ECMAScript standards process and aims to standardize behavior across implementations while maintaining web compatibility. The specification defines how these legacy static properties should be updated after successful pattern matches, introduces internal slots to track match data on the RegExp constructor, and restricts legacy features for RegExp subclasses and cross-realm instances to minimize security and compatibility risks.

Contributors