Lines Matching defs:thisArg
67 static JSTaggedValue FunctionAlgorithm(JSThread *thread, JSHandle<JSFunction> &thisArg,
73 ecmaRuntimeCallInfos->SetThis(thisArg.GetTaggedValue());
96 // func.apply(thisArg)
105 // ecma 19.2.3.1: thisArg
106 JSHandle<JSObject> thisArg(thread, env->GetGlobalObject());
107 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg),
110 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg),
114 std::vector<JSTaggedValue> args{thisArg.GetTaggedValue()};
119 JSObject::DeleteProperty(thread, (thisArg),
121 JSObject::DeleteProperty(thread, (thisArg),
125 // func.apply(thisArg, argArray)
135 // ecma 19.2.3.1: thisArg
136 JSHandle<JSObject> thisArg(thread, env->GetGlobalObject());
137 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg),
140 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg),
152 std::vector<JSTaggedValue> args{thisArg.GetTaggedValue(), array.GetTaggedValue()};
157 JSObject::DeleteProperty(thread, (thisArg),
159 JSObject::DeleteProperty(thread, (thisArg),
163 // target.bind(thisArg)
176 JSHandle<JSObject> thisArg(thread, env->GetGlobalObject());
178 std::vector<JSTaggedValue> args{thisArg.GetTaggedValue()};
187 ASSERT_EQ(resultFunc->GetBoundThis(), thisArg.GetTaggedValue());
204 // target.bind(thisArg, 123, "helloworld")
217 JSHandle<JSObject> thisArg(thread, env->GetGlobalObject());
220 std::vector<JSTaggedValue> args{thisArg.GetTaggedValue(), JSTaggedValue(static_cast<int32_t>(123)),
230 ASSERT_EQ(resultFunc->GetBoundThis(), thisArg.GetTaggedValue());
254 // target.bind(thisArg, 123, "helloworld") set target_name = EmptyString()
267 JSHandle<JSObject> thisArg(thread, env->GetGlobalObject());
269 std::vector<JSTaggedValue> args{thisArg.GetTaggedValue(), JSTaggedValue(static_cast<int32_t>(123)),
277 ASSERT_EQ(resultFunc->GetBoundThis(), thisArg.GetTaggedValue());
305 // func.call(thisArg)
315 // ecma 19.2.3.3: thisArg
316 JSHandle<JSObject> thisArg(thread, env->GetGlobalObject());
317 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg),
320 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg),
323 std::vector<JSTaggedValue> args{thisArg.GetTaggedValue()};
328 JSObject::DeleteProperty(thread, (thisArg),
330 JSObject::DeleteProperty(thread, (thisArg),
334 // func.call(thisArg, 123, 456, 789)
344 // ecma 19.2.3.3: thisArg
345 JSHandle<JSObject> thisArg(thread, env->GetGlobalObject());
346 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg),
349 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg),
353 // func thisArg ...args
354 std::vector<JSTaggedValue> args{thisArg.GetTaggedValue(), JSTaggedValue(static_cast<int32_t>(123)),
360 JSObject::DeleteProperty(thread, (thisArg),
362 JSObject::DeleteProperty(thread, (thisArg),