google / google/CodeCity

Verify correct behaviour of RegExp instance properties

Open
#113 0 comments 0 reactions 0 assignees View on GitHub
server
Dominant language
JavaScript
Stars
198
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Per [ES7 §21.2.6](https://www.ecma-international.org/ecma-262/7.0/#sec-properties-of-regexp-instances):

> Prior to ECMAScript 2015, RegExp instances were specified as having the own data properties `source`, `global`, `ignoreCase`, and `multiline`. Those properties are now specified as accessor properties of RegExp.prototype.

We should ensure that this impedance mismatch between the specified ES5.1 behaviour and current Node.js behaviour is dealt with correctly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.