Lines Matching refs:Let
97 // 1. Let O be ? RequireObjectCoercible(this value).
102 // a. Let isRegExp be ? IsRegExp(searchString).
104 // i. Let flags be ? Get(searchValue, "flags").
114 // c. Let replacer be ? GetMethod(searchValue, @@replace).
124 // 3. Let string be ? ToString(O).
127 // 4. Let searchString be ? ToString(searchValue).
130 // 5. Let functionalReplace be IsCallable(replaceValue).
136 // a. Let replaceValue be ? ToString(replaceValue).
140 // 7. Let searchLength be the length of searchString.
143 // 8. Let advanceBy be max(1, searchLength).
149 // 9. Let matchPositions be a new empty List.
150 // 10. Let position be ! StringIndexOf(string, searchString, 0).
153 // b. Let position be ! StringIndexOf(string, searchString,
155 // 12. Let endOfLastMatch be 0.
156 // 13. Let result be the empty string value.
166 // i. Let replacement be ? ToString(? Call(replaceValue, undefined,
176 // ii. Let captures be a new empty List.
177 // iii. Let replacement be GetSubstitution(searchString,
186 // c. Let stringSlice be the substring of string consisting of the code
193 // d. Let result be the string-concatenation of result, stringSlice,
199 // e. Let endOfLastMatch be position + searchLength.
208 // a. Let result be the string-concatenation of result and the substring