Lines Matching defs:newTarget
60 // ecma 26.1.2 Reflect.construct (target, argumentsList [ , newTarget])
72 // 2. If newTarget is not present, set newTarget to target.
73 JSHandle<JSTaggedValue> newTarget =
75 // 3. Else if IsConstructor(newTarget) is false, throw a TypeError exception.
76 if (!newTarget->IsConstructor()) {
77 THROW_TYPE_ERROR_AND_RETURN(thread, "Reflect.construct newTarget is present, but not constructor",
85 return ReflectConstructInternal(thread, target, args, newTarget);
89 JSHandle<TaggedArray> args, JSHandle<JSTaggedValue> newTarget)
92 // 5. Return ? Construct(target, args, newTarget).
95 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, target, undefined, newTarget, argsLength);