Lines Matching defs:items

65     // 22.1.1.3 Array(...items )
73 // 9. Let items be a zero-origined List containing the argument items in order.
76 // b. Let itemK be items[k].
98 // 22.1.2.1 Array.from ( items [ , mapfn [ , thisArg ] ] )
122 // 4. Let usingIterator be GetMethod(items, @@iterator).
123 JSHandle<JSTaggedValue> items = GetCallArg(argv, 0);
124 if (items->IsNull()) {
125 THROW_TYPE_ERROR_AND_RETURN(thread, "The items is null.", JSTaggedValue::Exception());
127 if (!mapping && items->IsString()) {
128 JSHandle<EcmaString> strItems(items);
132 if (!mapping && (items->IsTypedArray() || items->IsSharedTypedArray())) {
139 JSHandle<JSTaggedValue> usingIterator = JSObject::GetMethod(thread, items, iteratorSymbol);
147 if (!mapping && items->IsJSMapIterator()) {
148 iterator = JSIterator::GetIterator(thread, items, usingIterator);
173 // d. Let iterator be GetIterator(items, usingIterator).
175 iterator = JSIterator::GetIterator(thread, items, usingIterator);
237 // 7. Assert: items is not an Iterable so assume it is an array-like object.
238 // 8. Let arrayLike be ToObject(items).
239 JSHandle<JSObject> arrayLikeObj = JSTaggedValue::ToObject(thread, items);
426 // 4. Prepend O to items.
427 // 5. For each element E of items, do
1416 // 22.1.3.17 Array.prototype.push ( ...items )
1434 // 6. Let argCount be the number of elements in items.
1452 // 8. Repeat, while items is not empty
1453 // a. Remove the first element from items and let E be the value of the element.
1849 // 22.1.3.25 Array.prototype.splice (start, deleteCount , ...items )
1908 insertCount = argc - 2; // 2:2 means there are two arguments before the insert items.
1962 // 19. Let itemCount be the number of elements in items.
2042 // 23. Repeat, while items is not empty
2111 // 22.1.3.28 Array.prototype.unshift ( ...items )
2180 // e. Let items be a List whose elements are, in left to right order, the arguments that were passed to this
2182 // f. Repeat, while items is not empty
2183 // i. Remove the first element from items and let E be the value of that element.