Lines Matching full:be
44 // 1. Let numberOfArgs be the number of arguments passed to this function call. in ArrayConstructor()
51 …thread, containers::ErrorFlag::IS_NULL_ERROR, "The ArkTS Array's constructor cannot be directly in… in ArrayConstructor()
55 // 4. Let proto be GetPrototypeFromConstructor(newTarget, "%ArrayPrototype%"). in ArrayConstructor()
72 // 8. Let k be 0. in ArrayConstructor()
73 // 9. Let items be a zero-origined List containing the argument items in order. in ArrayConstructor()
75 // a. Let Pk be ToString(k). in ArrayConstructor()
76 // b. Let itemK be items[k]. in ArrayConstructor()
77 // c. Let defineStatus be CreateDataProperty(array, Pk, itemK). in ArrayConstructor()
106 // 1. Let C be the this value. in From()
108 // 2. If mapfn is undefined, let mapping be false. in From()
112 // b. If thisArg was supplied, let T be thisArg; else let T be undefined. in From()
113 // c. Let mapping be true in From()
122 // 4. Let usingIterator be GetMethod(items, @@iterator). in From()
155 // i. Let A be Construct(C). in From()
157 // i. Let A be ArrayCreate(0). in From()
173 // d. Let iterator be GetIterator(items, usingIterator). in From()
179 // f. Let k be 0. in From()
186 // i. Let Pk be ToString(k). in From()
187 // ii. Let next be IteratorStep(iterator). in From()
192 // 1. Let setStatus be Set(A, "length", k, true). in From()
201 // v. Let nextValue be IteratorValue(next). in From()
206 // 1. Let mappedValue be Call(mapfn, T, «nextValue, k»). in From()
208 // 3. Let mappedValue be mappedValue.[[value]]. in From()
209 // viii. Else, let mappedValue be nextValue. in From()
227 // ix. Let defineStatus be CreateDataPropertyOrThrow(A, Pk, mappedValue). in From()
238 // 8. Let arrayLike be ToObject(items). in From()
243 // 10. Let len be ToLength(Get(arrayLike, "length")). in From()
248 // a. Let A be Construct(C, «len»). in From()
250 // a. Let A be ArrayCreate(len). in From()
268 // 15. Let k be 0. in From()
270 // a. Let Pk be ToString(k). in From()
271 // b. Let kValue be Get(arrayLike, Pk). in From()
273 // i. Let mappedValue be Call(mapfn, T, «kValue, k»). in From()
274 // e. Else, let mappedValue be kValue. in From()
275 // f. Let defineStatus be CreateDataPropertyOrThrow(A, Pk, mappedValue). in From()
303 // 17. Let setStatus be Set(A, "length", len, true). in From()
400 // 1. Let O be ToObject(this value). in Concat()
403 auto error = ContainerError::BindError(thread, "The concat method cannot be bound."); in Concat()
411 // 2. Let A be ArraySpeciesCreate(O, 0). in Concat()
416 …THROW_TYPE_ERROR_AND_RETURN(thread, "array must be object or undefined.", JSTaggedValue::Exception… in Concat()
421 // 3. Let n be 0. in Concat()
438 // a. Let spreadable be ? IsConcatSpreadable(E). in Concat()
443 // i. Let k be 0. in Concat()
444 // ii. Let len be ? LengthOfArrayLike(E). in Concat()
459 // 1. Let P be ToString(k). in Concat()
460 // 2. Let exists be HasProperty(E, P). in Concat()
467 // a. Let subElement be Get(E, P). in Concat()
515 auto error = ContainerError::BindError(thread, "The entries method cannot be bound."); in Entries()
519 // 1. Let O be ToObject(this value). in Entries()
537 // 1. Let O be ToObject(this value). in Fill()
540 auto error = ContainerError::BindError(thread, "The fill method cannot be bound."); in Fill()
575 // 3. Let len be ToLength(Get(O, "length")). in Fill()
580 // 5. Let relativeStart be ToInteger(start). in Fill()
586 …// 7. If relativeStart < 0, let k be max((len + relativeStart),0); else let k be min(relativeStart… in Fill()
595 // 8. If end is undefined, let relativeEnd be len; else let relativeEnd be ToInteger(end). in Fill()
605 …// 10. If relativeEnd < 0, let final be max((len + relativeEnd),0); else let final be min(relative… in Fill()
614 // a. Let Pk be ToString(k). in Fill()
615 // b. Let setStatus be Set(O, Pk, value, true). in Fill()
687 // 1. Let O be ToObject(this value). in Filter()
690 auto error = ContainerError::BindError(thread, "The filter method cannot be bound."); in Filter()
699 // 3. Let len be ToLength(Get(O, "length")). in Filter()
710 // 6. If thisArg was supplied, let T be thisArg; else let T be undefined. in Filter()
713 // 7. Let A be ArraySpeciesCreate(O, 0). in Filter()
720 // 9. Let k be 0. in Filter()
721 // 10. Let to be 0. in Filter()
723 // a. Let Pk be ToString(k). in Filter()
724 // b. Let kPresent be HasProperty(O, Pk). in Filter()
727 // i. Let kValue be Get(O, Pk). in Filter()
729 // iii. Let selected be ToBoolean(Call(callbackfn, T, «kValue, k, O»)). in Filter()
732 // 1. Let status be CreateDataPropertyOrThrow (A, ToString(to), kValue). in Filter()
758 // 1. Let O be ToObject(this value). in Find()
761 auto error = ContainerError::BindError(thread, "The find method cannot be bound."); in Find()
770 // 3. Let len be ToLength(Get(O, "length")). in Find()
781 // 6. If thisArg was supplied, let T be thisArg; else let T be undefined. in Find()
784 // 7. Let k be 0. in Find()
786 // a. Let Pk be ToString(k). in Find()
787 // b. Let kValue be Get(O, Pk). in Find()
789 // d. Let testResult be ToBoolean(Call(predicate, T, «kValue, k, O»)). in Find()
825 // 1. Let O be ToObject(this value). in FindIndex()
828 auto error = ContainerError::BindError(thread, "The findIndex method cannot be bound."); in FindIndex()
837 // 3. Let len be ToLength(Get(O, "length")). in FindIndex()
848 // 6. If thisArg was supplied, let T be thisArg; else let T be undefined. in FindIndex()
851 // 7. Let k be 0. in FindIndex()
853 // a. Let Pk be ToString(k). in FindIndex()
854 // b. Let kValue be Get(O, Pk). in FindIndex()
856 // d. Let testResult be ToBoolean(Call(predicate, T, «kValue, k, O»)). in FindIndex()
900 // 1. Let O be ToObject(this value). in ForEach()
903 auto error = ContainerError::BindError(thread, "The forEach method cannot be bound."); in ForEach()
912 // 3. Let len be ToLength(Get(O, "length")). in ForEach()
923 // 6. If thisArg was supplied, let T be thisArg; else let T be undefined. in ForEach()
926 // 7. Let k be 0. in ForEach()
928 // a. Let Pk be ToString(k). in ForEach()
929 // b. Let kPresent be HasProperty(O, Pk). in ForEach()
932 // i. Let kValue be Get(O, Pk). in ForEach()
934 // iii. Let funcResult be Call(callbackfn, T, «kValue, k, O»). in ForEach()
969 // 1. Let O be ToObject(this value). in IndexOfSlowPath()
974 // 3. Let len be ToLength(Get(O, "length")). in IndexOfSlowPath()
982 // 6. If argument fromIndex was passed let n be ToInteger(fromIndex); else let n be 0. in IndexOfSlowPath()
1020 auto error = ContainerError::BindError(thread, "The indexOf method cannot be bound."); in IndexOf()
1045 auto error = ContainerError::BindError(thread, "The join method cannot be bound."); in Join()
1062 auto error = ContainerError::BindError(thread, "The keys method cannot be bound."); in Keys()
1079 // 1. Let O be ToObject(this value). in Map()
1082 auto error = ContainerError::BindError(thread, "The map method cannot be bound."); in Map()
1091 // 3. Let len be ToLength(Get(O, "length")). in Map()
1102 // 6. If thisArg was supplied, let T be thisArg; else let T be undefined. in Map()
1105 // 7. Let A be ArraySpeciesCreate(O, len). in Map()
1115 // 9. Let k be 0. in Map()
1117 // a. Let Pk be ToString(k). in Map()
1118 // b. Let kPresent be HasProperty(O, Pk). in Map()
1121 // i. Let kValue be Get(O, Pk). in Map()
1123 // iii. Let mappedValue be Call(callbackfn, T, «kValue, k, O»). in Map()
1125 // v. Let status be CreateDataPropertyOrThrow (A, Pk, mappedValue). in Map()
1175 // 1. Let O be ToObject(this value). in Pop()
1178 auto error = ContainerError::BindError(thread, "The pop method cannot be bound."); in Pop()
1195 // 1. Let O be ToObject(this value). in PopInner()
1204 // 3. Let len be ToLength(Get(O, "length")). in PopInner()
1209 // a. Let setStatus be Set(O, "length", 0, true). in PopInner()
1220 // a. Let newLen be len–1. in PopInner()
1221 // b. Let indx be ToString(newLen). in PopInner()
1222 // c. Let element be Get(O, indx). in PopInner()
1224 // e. Let deleteStatus be DeletePropertyOrThrow(O, indx). in PopInner()
1226 // g. Let setStatus be Set(O, "length", newLen, true). in PopInner()
1251 auto error = ContainerError::BindError(thread, "The push method cannot be bound."); in Push()
1260 // 6. Let argCount be the number of elements in items. in Push()
1263 // 1. Let O be ToObject(this value). in Push()
1269 // 3. Let len be ToLength(Get(O, "length")). in Push()
1279 // a. Remove the first element from items and let E be the value of the element. in Push()
1280 // b. Let setStatus be Set(O, ToString(len), E, true). in Push()
1282 // d. Let len be len+1. in Push()
1298 // 9. Let setStatus be Set(O, "length", len, true). in Push()
1348 // 1. Let O be ToObject(this value). in Reduce()
1351 auto error = ContainerError::BindError(thread, "The reduce method cannot be bound."); in Reduce()
1360 // 3. Let len be ToLength(Get(O, "length")). in Reduce()
1376 // 7. Let k be 0. in Reduce()
1380 // a. Let kPresent be false. in Reduce()
1382 // i. Let Pk be ToString(k). in Reduce()
1383 // ii. Let kPresent be HasProperty(O, Pk). in Reduce()
1386 // 1. Let accumulator be Get(O, Pk). in Reduce()
1407 …THROW_TYPE_ERROR_AND_RETURN(thread, "accumulator can't be initialized.", JSTaggedValue::Exception(… in Reduce()
1427 // 1. Let O be ToObject(this value). in Shift()
1430 auto error = ContainerError::BindError(thread, "The shift method cannot be bound."); in Shift()
1443 // 3. Let len be ToLength(Get(O, "length")). in Shift()
1448 // a. Let setStatus be Set(O, "length", 0, true). in Shift()
1458 // 6. Let first be Get(O, "0"). in Shift()
1465 // 8. Let k be 1. in Shift()
1467 // a. Let from be ToString(k). in Shift()
1468 // b. Let to be ToString(k–1). in Shift()
1469 // c. Let fromPresent be HasProperty(O, from). in Shift()
1472 // i. Let fromVal be Get(O, from). in Shift()
1474 // iii. Let setStatus be Set(O, to, fromVal, true). in Shift()
1477 // i. Let deleteStatus be DeletePropertyOrThrow(O, to). in Shift()
1497 // 10. Let deleteStatus be DeletePropertyOrThrow(O, ToString(len–1)). in Shift()
1503 // 12. Let setStatus be Set(O, "length", len–1, true). in Shift()
1521 // 1. Let O be ToObject(this value). in Slice()
1524 auto error = ContainerError::BindError(thread, "The slice method cannot be bound."); in Slice()
1533 // 3. Let len be ToLength(Get(O, "length")). in Slice()
1543 // 5. Let relativeStart be ToInteger(start). in Slice()
1550 …// 7. If relativeStart < 0, let k be max((len + relativeStart),0); else let k be min(relativeStart… in Slice()
1559 // 8. If end is undefined, let relativeEnd be len; else let relativeEnd be ToInteger(end). in Slice()
1561 …// 10. If relativeEnd < 0, let final be max((len + relativeEnd),0); else let final be min(relative… in Slice()
1582 // 11. Let count be max(final – k, 0). in Slice()
1591 // 12. Let A be ArraySpeciesCreate(O, count). in Slice()
1601 // 14. Let n be 0. in Slice()
1603 // a. Let Pk be ToString(k). in Slice()
1604 // b. Let kPresent be HasProperty(O, Pk). in Slice()
1607 // i. Let kValue be Get(O, Pk). in Slice()
1609 // iii. Let status be CreateDataPropertyOrThrow(A, ToString(n), kValue ). in Slice()
1631 // 16. Let setStatus be Set(A, "length", n, true). in Slice()
1655 // 2. Let obj be ToObject(this value). in Sort()
1658 auto error = ContainerError::BindError(thread, "The sort method cannot be bound."); in Sort()
1684 // 1. Let O be ToObject(this value). in Splice()
1687 auto error = ContainerError::BindError(thread, "The splice method cannot be bound."); in Splice()
1696 // 3. Let len be ToLength(Get(O, "length")). in Splice()
1700 // 5. Let relativeStart be ToInteger(start). in Splice()
1712 …// 7. If relativeStart < 0, let actualStart be max((len + relativeStart),0); else let actualStart … in Splice()
1723 // a. Let insertCount be 0. in Splice()
1724 // b. Let actualDeleteCount be 0. in Splice()
1726 // a. Let insertCount be 0. in Splice()
1727 // b. Let actualDeleteCount be len – actualStart. in Splice()
1729 // a. Let insertCount be the number of actual arguments minus 2. in Splice()
1730 // b. Let dc be ToInteger(deleteCount). in Splice()
1732 // d. Let actualDeleteCount be min(max(dc,0), len – actualStart). in Splice()
1746 // 12. Let A be ArraySpeciesCreate(O, actualDeleteCount). in Splice()
1755 // 14. Let k be 0. in Splice()
1757 // a. Let from be ToString(actualStart+k). in Splice()
1758 // b. Let fromPresent be HasProperty(O, from). in Splice()
1760 // i. Let fromValue be Get(O, from). in Splice()
1761 // iii. Let status be CreateDataPropertyOrThrow(A, ToString(k), fromValue). in Splice()
1784 // 16. Let setStatus be Set(A, "length", actualDeleteCount, true). in Splice()
1788 // 19. Let itemCount be the number of elements in items. in Splice()
1790 // a. Let k be actualStart. in Splice()
1792 // i. Let from be ToString(k+actualDeleteCount). in Splice()
1793 // ii. Let to be ToString(k+itemCount). in Splice()
1794 // iii. Let fromPresent be HasProperty(O, from). in Splice()
1796 // 1. Let fromValue be Get(O, from). in Splice()
1797 // 3. Let setStatus be Set(O, to, fromValue, true). in Splice()
1799 // 1. Let deleteStatus be DeletePropertyOrThrow(O, to). in Splice()
1801 // c. Let k be len. in Splice()
1803 // i. Let deleteStatus be DeletePropertyOrThrow(O, ToString(k–1)). in Splice()
1833 // a. Let k be (len – actualDeleteCount). in Splice()
1835 // i. Let from be ToString(k + actualDeleteCount – 1). in Splice()
1836 // ii. Let to be ToString(k + itemCount – 1) in Splice()
1837 // iii. Let fromPresent be HasProperty(O, from). in Splice()
1840 // 1. Let fromValue be Get(O, from). in Splice()
1842 // 3. Let setStatus be Set(O, to, fromValue, true). in Splice()
1845 // 1. Let deleteStatus be DeletePropertyOrThrow(O, to). in Splice()
1866 // 22. Let k be actualStart. in Splice()
1881 // 24. Let setStatus be Set(O, "length", len – actualDeleteCount + itemCount, true). in Splice()
1900 // 1. Let array be ToObject(this value). in ToString()
1903 auto error = ContainerError::BindError(thread, "The toString method cannot be bound."); in ToString()
1912 // 3. Let func be Get(array, "join"). in ToString()
1919 …// 5. If IsCallable(func) is false, let func be the intrinsic function %ObjProto_toString% (19.1.3… in ToString()
1945 // 5. Let argCount be the number of actual arguments. in Unshift()
1948 // 1. Let O be ToObject(this value). in Unshift()
1951 auto error = ContainerError::BindError(thread, "The unshift method cannot be bound."); in Unshift()
1960 // 3. Let len be ToLength(Get(O, "length")). in Unshift()
1967 // b. Let k be len. in Unshift()
1969 // i. Let from be ToString(k–1). in Unshift()
1970 // ii. Let to be ToString(k+argCount –1). in Unshift()
1971 // iii. Let fromPresent be HasProperty(O, from). in Unshift()
1974 // 1. Let fromValue be Get(O, from). in Unshift()
1976 // 3. Let setStatus be Set(O, to, fromValue, true). in Unshift()
1979 // 1. Let deleteStatus be DeletePropertyOrThrow(O, to). in Unshift()
2005 // d. Let j be 0. in Unshift()
2006 …// e. Let items be a List whose elements are, in left to right order, the arguments that were pa… in Unshift()
2009 // i. Remove the first element from items and let E be the value of that element. in Unshift()
2010 // ii. Let setStatus be Set(O, ToString(j), E, true). in Unshift()
2027 // 7. Let setStatus be Set(O, "length", len+argCount, true). in Unshift()
2047 auto error = ContainerError::BindError(thread, "The values method cannot be bound."); in Values()
2051 // 1. Let O be ToObject(this value). in Values()
2130 // 1. Let O be ? ToObject(this value). in Includes()
2133 auto error = ContainerError::BindError(thread, "The includes method cannot be bound."); in Includes()
2144 // 2. Let len be ? LengthOfArrayLike(O). in Includes()
2151 // 4. Let n be ? ToIntegerOrInfinity(fromIndex). in Includes()
2169 // a. Let k be n. in Includes()
2171 // a. Let k be len + n. in Includes()
2172 // b. If k < 0, let k be 0. in Includes()
2176 // a. Let elementK be ? Get(O, ! ToString(!(k))). in Includes()
2206 // 1. Let O be ToObject(this value). in At()
2209 auto error = ContainerError::BindError(thread, "The at method cannot be bound."); in At()
2223 // 2. Let len be ? LengthOfArrayLike(O). in At()
2228 // 3. Let index be ? ToIntegerOrInfinity(index). in At()
2234 // a. Let k be relativeIndex. in At()
2236 // a. Let k be len + relativeIndex. in At()
2269 auto error = ContainerError::BindError(thread, "The ShrinkTo method cannot be bound."); in ShrinkTo()
2308 auto error = ContainerError::BindError(thread, "The ExtendTo method cannot be bound."); in ExtendTo()
2350 // 1. Let O be ToObject(this value). in LastIndexOfSlowPath()
2355 // 3. Let len be ToLength(Get(O, "length")). in LastIndexOfSlowPath()
2363 // 6. If argument fromIndex was passed let n be ToInteger(fromIndex); else let n be 0. in LastIndexOfSlowPath()
2400 auto error = ContainerError::BindError(thread, "The lastIndexOf method cannot be bound."); in LastIndexOf()