Closed Bug 1303603 Opened 8 years ago Closed 4 years ago

Clarify that RegExp.prototype.exec() returns a special array

Categories

(Developer Documentation Graveyard :: JavaScript, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: sebo, Unassigned)

Details

According to the spec.[1] RegExp.prototype.exec() returns an array of the match and the captured groups. This array gets two properties appended, which are called 'index' and 'input'. Those two properties are not mentioned on MDN yet, so they need to be added. Sebastian [1] http://www.ecma-international.org/ecma-262/6.0/#sec-regexpbuiltinexec
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.