Lines Matching defs:array

53     JSHandle<JSTaggedValue> array = BuiltinsBase::GetCallArg(argv, 0);
54 JSHandle<JSObject> objectArray = JSHandle<JSObject>::Cast(array);
265 * @tc.desc: The race method receives an array.
292 * @tc.steps: step3. Construct an array with two elements p1 and p2. array = [p1. p2]
294 JSHandle<JSObject> array(JSArray::ArrayCreate(thread, JSTaggedNumber(2)));
296 JSArray::DefineOwnProperty(thread, array, JSHandle<JSTaggedValue>(thread, JSTaggedValue(0)), desc);
299 JSArray::DefineOwnProperty(thread, array, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), desc1);
304 auto result4 = PromiseAlgorithm(thread, promise, array.GetTaggedValue(), AlgorithmType::RACE);
312 * @tc.desc: The Race method receives an array, uses the Then method to save the task in the task queue, and outputs
342 * @tc.steps: step3. Construct an array with two elements p1 and p2. array = [p1. p2]
344 JSHandle<JSObject> array(JSArray::ArrayCreate(thread, JSTaggedNumber(2)));
346 JSArray::DefineOwnProperty(thread, array, JSHandle<JSTaggedValue>(thread, JSTaggedValue(0)), desc);
349 JSArray::DefineOwnProperty(thread, array, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), desc1);
354 auto result3 = PromiseAlgorithm(thread, promise, array.GetTaggedValue(), AlgorithmType::RACE);
382 * @tc.desc: The All method receives an array, uses the Then method to save the task in the task queue, and outputs the
412 * @tc.steps: step3. Construct an array with two elements p1 and p2. array = [p1. p2]
414 JSHandle<JSObject> array(JSArray::ArrayCreate(thread, JSTaggedNumber(2)));
416 JSArray::DefineOwnProperty(thread, array, JSHandle<JSTaggedValue>(thread, JSTaggedValue(0)), desc);
419 JSArray::DefineOwnProperty(thread, array, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), desc1);
424 auto result4 = PromiseAlgorithm(thread, promise, array.GetTaggedValue(), AlgorithmType::ALL);