archives

« Bugzilla Issues Index

#2159 — 21.2.5.2.1 RegExpExec: Invalid call to CreateDataProperty in step 22


21.2.5.2.1 Runtime Semantics: RegExpExec Abstract Operation, step 22:

`CreateDataProperty(A, "length", n + 1)` is not valid, choices:

- Call [[DefineOwnProperty]] with PropertyDescriptor {[[Value]]: n + 1}
- Call Put(A, "length", n + 1)
- Call ArrayCreate with argument (n + 1) in step 17


fixed in rev21 editor's draft

Used ArrayCreate(n+1)

This is a change from ES5, but the sequencing of these steps were not observable in ES5.


fixed in rev21 draft