Lines Matching defs:undefined
36 // 1. If NewTarget is undefined, throw a TypeError exception.
39 THROW_TYPE_ERROR_AND_RETURN(thread, "PromiseConstructor: NewTarget is undefined", JSTaggedValue::Exception());
60 // 9. Let completion be Call(executor, undefined, «resolvingFunctions.[[Resolve]], resolvingFunctions.[[reject]])
63 JSHandle<JSTaggedValue> undefined = globalConst->GetHandledUndefined();
65 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, executor, undefined, undefined, argsLength);
72 // a. Let status be Call(resolvingFunctions.[[Reject]], undefined, «completion.[[value]]»).
79 EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefined, undefined, 1);
113 // 5. If S is neither undefined nor null, let C be S.
175 // 5. If S is neither undefined nor null, let C be S.
259 // 6. Let resolveResult be Call(promiseCapability.[[Resolve]], undefined, «x»).
262 JSHandle<JSTaggedValue> undefined = globalConst->GetHandledUndefined();
263 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, resolve, undefined, undefined, 1);
295 // 5. Let rejectResult be Call(promiseCapability.[[Reject]], undefined, «r»).
299 JSHandle<JSTaggedValue> undefined = globalConst->GetHandledUndefined();
300 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefined, undefined, 1);
323 // 2. Return Invoke(promise, "then", «undefined, onRejected»).
332 JSHandle<JSTaggedValue> undefined = globalConst->GetHandledUndefined();
334 EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, promise, undefined, 2); // 2: «undefined, onRejected»
336 info->SetCallArg(undefined.GetTaggedValue(), reject.GetTaggedValue());
472 JSHandle<JSTaggedValue> undefined(globalConst->GetHandledUndefined());
483 // 2. Let resolveResult be Call(resultCapability.[[Resolve]], undefined, «valuesArray»).
486 EcmaInterpreter::NewRuntimeCallInfo(thread, resCapaFunc, undefined, undefined, 1);
509 // h. Append undefined to values.
517 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, ctor, undefined, 1);
544 EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, nextPromise,
545 undefined, 2); // 2: «resolveElement, resultCapability.[[Reject]]»
582 JSHandle<JSTaggedValue> undefined(globalConst->GetHandledUndefined());
605 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, constructor, undefined, 1);
618 EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, nextPromise, undefined, 2); // 2: two args
723 JSHandle<JSTaggedValue> undefined(globalConst->GetHandledUndefined());
775 // h. Append undefined to errors.
783 EcmaInterpreter::NewRuntimeCallInfo(thread, promiseResolve, constructor, undefined, 1);
816 EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, nextPromise, undefined, 2); // 2: two args
908 JSHandle<JSTaggedValue> undefined(globalConst->GetHandledUndefined());
930 // 2. Perform ? Call(resultCapability.[[Resolve]], undefined, « valuesArray »).
933 EcmaInterpreter::NewRuntimeCallInfo(thread, resCapaFunc, undefined, undefined, 1);
959 // h. Append undefined to values.
967 EcmaInterpreter::NewRuntimeCallInfo(thread, promiseResolve, constructor, undefined, 1);
1020 EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, nextPromise, undefined, 2); // 2: two args
1091 JSHandle<JSTaggedValue> undefined(globalConst->GetHandledUndefined());
1093 EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, promise, undefined, 2); // 2: two args