Name Description Size
browser.js 0
indices-array-element.js --- description: A matching element of indices is an Array with exactly two number properties. esid: sec-getmatchindicesarray features: [regexp-match-indices] info: | GetMatchIndicesArray ( S, match ) 5. Return CreateArrayFromList(« _match_.[[StartIndex]], _match_.[[EndIndex]] »). --- 1005
indices-array-matched.js --- description: The properties of the "indices" array correspond to the start/end indices of the same values in the match. includes: [compareArray.js] esid: sec-makeindicesarray features: [regexp-match-indices] info: | MakeIndicesArray ( S, indices, groupNames, hasIndices ) 4. Let _n_ be the number of elements in _indices_. ... 8. Set _A_ to ! ArrayCreate(_n_). ... 13. For each integer _i_ such that _i_ >= 0 and _i_ < _n_, do a. Let _matchIndices_ be _indices_[_i_]. b. If _matchIndices_ is not *undefined*, then i. Let _matchIndicesArray_ be ! GetMatchIndicesArray(_S_, _matchIndices_). c. Else, i. Let _matchIndicesArray_ be *undefined*. d. Perform ! CreateDataProperty(_A_, ! ToString(_n_), _matchIndicesArray_). ... --- 1514
indices-array-non-unicode-match.js --- description: Basic matching cases with non-unicode matches. includes: [compareArray.js, propertyHelper.js, deepEqual.js] esid: sec-regexpbuiltinexec features: [regexp-named-groups, regexp-match-indices] info: | Runtime Semantics: RegExpBuiltinExec ( R, S ) ... 4. Let _lastIndex_ be ? ToLength(? Get(_R_, `"lastIndex")). ... 8. If _flags_ contains `"d"`, let _hasIndices_ be *true*, else let _hasIndices_ be *false*. ... 26. Let _match_ be the Match { [[StartIndex]]: _lastIndex_, [[EndIndex]]: _e_ }. 27. Let _indices_ be a new empty List. 29. Add _match_ as the last element of _indices_. ... 35. For each integer _i_ such that _i_ > 0 and _i_ <= _n_, in ascending order, do ... f. Else, i. Let _captureStart_ be _captureI_'s _startIndex_. ii. Let _captureEnd_ be _captureI_'s _endIndex_. ... iv. Let _capture_ be the Match { [[StartIndex]]: _captureStart_, [[EndIndex]]: _captureEnd_ }. v. Append _capture_ to _indices_. ... 36. If _hasIndices_ is *true*, then a. Let _indicesArray_ be MakeIndicesArray( _S_, _indices_, _groupNames_). b. Perform ! CreateDataProperty(_A_, `"indices"`, _indicesArray_). --- 4113
indices-array-properties.js --- description: The properties of the "indices" array are created with CreateDataProperty. includes: [propertyHelper.js] esid: sec-makeindicesarray features: [regexp-match-indices] info: | MakeIndicesArray ( S, indices, groupNames, hasGroups ) 13. For each integer _i_ such that _i_ >= 0 and _i_ < _n_, do d. Perform ! CreateDataProperty(_A_, ! ToString(_n_), _matchIndicesArray_). --- 822
indices-array-unicode-match.js --- description: Basic matching cases with non-unicode matches. includes: [compareArray.js, propertyHelper.js, deepEqual.js] esid: sec-regexpbuiltinexec features: [regexp-named-groups, regexp-match-indices] info: | Runtime Semantics: RegExpBuiltinExec ( R, S ) ... 4. Let _lastIndex_ be ? ToLength(? Get(_R_, `"lastIndex")). ... 16. If _fullUnicode_ is *true*, set _e_ to ! GetStringIndex(_S_, _Input_, _e_). ... 26. Let _match_ be the Match { [[StartIndex]]: _lastIndex_, [[EndIndex]]: _e_ }. 27. Let _indices_ be a new empty List. ... 29. Add _match_ as the last element of _indices_. ... 35. For each integer _i_ such that _i_ > 0 and _i_ <= _n_, in ascending order, do ... f. Else, i. Let _captureStart_ be _captureI_'s _startIndex_. ii. Let _captureEnd_ be _captureI_'s _endIndex_. iii. If _fullUnicode_ is *true*, then 1. Set _captureStart_ to ! GetStringIndex(_S_, _Input_, _captureStart_). 1. Set _captureEnd_ to ! GetStringIndex(_S_, _Input_, _captureEnd_). iv. Let _capture_ be the Match { [[StartIndex]]: _captureStart_, [[EndIndex]]: _captureEnd_ }. v. Append _capture_ to _indices_. ... 36. If _hasIndices_ is *true*, then a. Let _indicesArray_ be MakeIndicesArray(_S_, _indices_, _groupNames_, _hasGroups_). b. Perform ! CreateDataProperty(_A_, `"indices"`, _indicesArray_). GetStringIndex ( S, Input, e ) ... 4. Let _eUTF_ be the smallest index into _S_ that corresponds to the character at element _e_ of _Input_. If _e_ is greater than or equal to the number of elements in _Input_, then _eUTF_ is the number of code units in _S_. 5. Return _eUTF_. --- 4577
indices-array-unicode-property-names.js --- description: Basic matching cases with non-unicode matches. includes: [compareArray.js] esid: sec-makeindicesarray features: [regexp-named-groups, regexp-match-indices] --- 1110
indices-array-unmatched.js --- description: An unmatched capture in a match corresponds to an unmatched capture in "indices" esid: sec-makeindicesarray features: [regexp-match-indices] info: | MakeIndicesArray ( S, indices, groupNames ) 4. Let _n_ be the number of elements in _indices_. ... 6. Set _A_ to ! ArrayCreate(_n_). ... 11. For each integer _i_ such that _i_ >= 0 and _i_ < _n_, do a. Let _matchIndices_ be _indices_[_i_]. b. If _matchIndices_ is not *undefined*, then i. Let _matchIndicesArray_ be ! GetMatchIndicesArray(_S_, _matchIndices_). c. Else, i. Let _matchIndicesArray_ be *undefined*. d. Perform ! CreateDataProperty(_A_, ! ToString(_n_), _matchIndicesArray_). ... --- 1155
indices-array.js --- description: The "indices" property is an Array. esid: sec-makeindicesarray features: [regexp-match-indices] info: | MakeIndicesArray ( S, indices, groupNames, hasGroups ) 6. Set _A_ to ! ArrayCreate(_n_). --- 553
indices-groups-object-undefined.js --- description: The groups object of indices is created unconditionally. includes: [propertyHelper.js] esid: sec-makeindicesarray features: [regexp-named-groups, regexp-match-indices] info: | MakeIndicesArray ( S, indices, groupNames, hasGroups ) 10. If _hasGroups_ is *true*, then a. Let _groups_ be ! ObjectCreate(*null*). 11. Else, a. Let _groups_ be *undefined*. 12. Perform ! CreateDataProperty(_A_, `"groups"`, _groups_). --- 785
indices-groups-object-unmatched.js --- description: Test the groups object of indices with matched and unmatched named captures. includes: [compareArray.js] esid: sec-makeindicesarray features: [regexp-named-groups, regexp-match-indices] info: | MakeIndicesArray ( S, indices, groupNames, hasGroups ) 11. For each integer _i_ such that _i_ >= 0 and _i_ < _n_, do e. If _i_ > 0 and _groupNames_[_i_ - 1] is not *undefined*, then i. Perform ! CreateDataProperty(_groups_, _groupNames_[_i_ - 1], _matchIndicesArray_). --- 818
indices-groups-object.js --- description: The groups object of indices is created with CreateDataProperty includes: [propertyHelper.js, compareArray.js] esid: sec-makeindicesarray features: [regexp-named-groups, regexp-match-indices] info: | MakeIndicesArray ( S, indices, groupNames, hasIndices ) 10. If _hasIndices_ is *true*, then a. Let _groups_ be ! ObjectCreate(*null*). 11. Else, a. Let _groups_ be *undefined*. 12. Perform ! CreateDataProperty(_A_, `"groups"`, _groups_). --- 1334
indices-groups-properties.js --- description: Properties of the groups object of indices are created with CreateDataProperty includes: [compareArray.js, propertyHelper.js] esid: sec-makeindicesarray features: [regexp-named-groups, regexp-match-indices] info: | MakeIndicesArray ( S, indices, groupNames, hasIndices ) 13. For each integer _i_ such that _i_ >= 0 and _i_ < _n_, do e. If _i_ > 0 and _groupNames_[_i_ - 1] is not *undefined*, then i. Perform ! CreateDataProperty(_groups_, _groupNames_[_i_ - 1], _matchIndicesArray_). --- 1306
indices-property.js --- description: The "indices" property is created with DefinePropertyOrThrow includes: [propertyHelper.js] esid: sec-regexpbuiltinexec features: [regexp-match-indices] info: | Runtime Semantics: RegExpBuiltinExec ( R, S ) 8. If _flags_ contains `"d"`, let _hasIndices_ be *true*, else let _hasIndices_ be *false*. ... 36. If _hasIndices_ is *true*, then a. Let _indicesArray_ be MakeIndicesArray(_S_, _indices_, _groupNames_, _hasGroups_). b. Perform ! CreateDataProperty(_A_, `"indices"`, _indicesArray_). --- 1069
no-indices-array.js --- description: The "indices" property is an Array. esid: sec-regexpbuiltinexec features: [regexp-match-indices] info: | RegExpBuiltinExec ( R, S ) 8. If _flags_ contains `"d"`, let _hasIndices_ be *true*, else let _hasIndices_ be *false*. 36. If _hasIndices_ is *true*, then b. Perform ! CreateDataProperty(_A_, `"indices"`, _indicesArray_). --- 629
shell.js --- description: > Compare two values structurally defines: [assert.deepEqual] --- 10707