Home
last modified time | relevance | path

Searched refs:jsObj (Results 1 - 21 of 21) sorted by relevance

/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/dynamic_object/
H A Ddynamic_object.cpp64 napi_value jsObj; in TEST_F() local
66 ASSERT_EQ(napi_ok, napi_create_object(env, &jsObj)); in TEST_F()
68 ASSERT_EQ(napi_ok, napi_set_named_property(env, jsObj, "prop", jsValue)); in TEST_F()
71 auto ret = CallEtsMethod<double>("getPropertyFromJsvalue", jsObj); in TEST_F()
88 napi_value jsObj {}; in TEST_F()
91 ASSERT_EQ(napi_ok, napi_create_object(env, &jsObj)); in TEST_F()
94 ASSERT_EQ(napi_ok, napi_set_named_property(env, jsObj, "prop_1", jsProp1)); in TEST_F()
98 auto ret = CallEtsMethod<double>("getPropertyFromJsvalue2", jsObj); in TEST_F()
112 napi_value jsObj {}; in TEST_F()
113 ASSERT_EQ(napi_ok, napi_create_object(env, &jsObj)); in TEST_F()
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_call_params/sts_to_ts/
H A Dgeneric_call_params.test.js22 const jsObj = {};
41 jsObj,
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_as_parameter/sts_to_ts/
H A Dgeneric_as_parameter.test.js22 const jsObj = {};
41 jsObj,
H A Dcheck_generic_default_type.js23 jsObj,
63 ASSERT_TRUE(checkObj(genericDefaultObj(jsObj)));
H A Dcheck_any_type_parameter.js23 jsObj,
55 ASSERT_TRUE(checkObj(anyTypeParameter(jsObj)));
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_static/sts_to_js/
H A Dgeneric_static.test.js21 const jsObj = {};
48 jsObj,
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/proxies/mem/proxy_reference_storage_1/
H A Dtest_proxy_reference_storage_1.cpp46 napi_value jsObj; in CreateReference() local
47 NAPI_CHECK_FATAL(napi_create_object(GetJsEnv(), &jsObj)); in CreateReference()
48 SharedReference *ref = storage_->CreateETSObjectRef(InteropCtx::Current(), etsObject, jsObj); in CreateReference()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_date_time_format_second_test.cpp212 auto jsObj = JSHandle<JSObject>(thread, JSDateTimeFormatForObj_001(thread)); in HWTEST_F_L0() local
213 auto constructorResult = JSDateTimeFormatConstructor(thread, jsObj, localesString); in HWTEST_F_L0()
305 auto jsObj = JSHandle<JSObject>(thread, JSDateTimeFormatForObj_002(thread)); in HWTEST_F_L0() local
306 auto constructorResult = JSDateTimeFormatConstructor(thread, jsObj, localesString); in HWTEST_F_L0()
319 auto jsObj = JSHandle<JSObject>(thread, JSDateTimeFormatForObj_002(thread)); in HWTEST_F_L0() local
320 auto constructorResult = JSDateTimeFormatConstructor(thread, jsObj, localesString); in HWTEST_F_L0()
341 auto jsObj = JSHandle<JSObject>(thread, JSDateTimeFormatForObj_002(thread)); in HWTEST_F_L0() local
H A Dbuiltins_global_test.cpp40 JSHandle<JSObject> jsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(jsFunc1), jsFunc1); in NewJSObject() local
41 return jsObj; in NewJSObject()
238 JSHandle<JSObject> jsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(jsFunc1), jsFunc1); in HWTEST_F_L0() local
239 ecmaRuntimeCallInfo5->SetCallArg(0, jsObj.GetTaggedValue()); in HWTEST_F_L0()
H A Dbuiltins_shared_array_test.cpp239 JSHandle<JSObject> jsObj(obj); in SharedArrayDefineOwnPropertyTest()
244 JSArray::DefineOwnProperty(thread, jsObj, keys[i], desc0); in SharedArrayDefineOwnPropertyTest()
H A Dbuiltins_array_test.cpp249 JSHandle<JSObject> jsObj(obj); in DefineOwnPropertyCommonTest()
254 JSArray::DefineOwnProperty(thread, jsObj, keys[i], desc0); in DefineOwnPropertyCommonTest()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Dtagged_value_test.cpp782 JSHandle<JSObject> jsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objectFun), objectFun); in HWTEST_F_L0() local
783 JSHandle<JSTaggedValue> value(jsObj); in HWTEST_F_L0()
784 EXPECT_EQ(*JSTaggedValue::ToObject(thread, value), *jsObj); in HWTEST_F_L0() local
841 JSHandle<JSObject> jsObj = in HWTEST_F_L0() local
844 ASSERT_TRUE(jsObj->IsJSArray()); in HWTEST_F_L0()
926 JSHandle<JSObject> jsObj = ecma->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objectFun), objectFun); in HWTEST_F_L0() local
933 ASSERT_FALSE(JSTaggedValue::SameValue(JSTaggedValue(1), JSTaggedValue(*jsObj))); in HWTEST_F_L0()
935 ASSERT_FALSE(JSTaggedValue::SameValue(test.GetTaggedValue(), JSTaggedValue(*jsObj))); in HWTEST_F_L0()
962 ASSERT_TRUE(JSTaggedValue::SameValue(jsObj.GetTaggedValue(), jsObj in HWTEST_F_L0()
[all...]
H A Ddump_test.cpp355 JSHandle<JSObject> jsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(jsFunc1), jsFunc1); in NewJSObject() local
356 return jsObj; in NewJSObject()
514 JSHandle<JSObject> jsObj = NewJSObject(thread, factory, globalEnv); in HWTEST_F_L0() local
515 DUMP_FOR_HANDLE(jsObj); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/base/tests/
H A Djson_parser_test.cpp77 auto *jsObj = JSObject::Cast(obj); in CheckSendableProps() local
78 auto *propsValue = TaggedArray::Cast(jsObj->GetProperties()); in CheckSendableProps()
H A Dason_test.cpp69 auto *jsObj = JSObject::Cast(obj); in CheckSendableProps() local
70 auto *propsValue = TaggedArray::Cast(jsObj->GetProperties()); in CheckSendableProps()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dtype_info_accessors.cpp1392 JSObject *jsObj = JSObject::Cast(obj); in GetHClass() local
1393 JSHClass *oldClass = jsObj->GetClass(); in GetHClass()
1395 if (jsObj->ElementsAndPropertiesIsEmpty()) { in GetHClass()
1420 JSObject *jsObj = JSObject::Cast(obj); in GetHClass() local
1421 JSHClass *oldClass = jsObj->GetClass(); in GetHClass()
1424 if (jsObj->ElementsAndPropertiesIsEmpty()) { in GetHClass()
H A Dtype_info_accessors.h1890 JSObject *jsObj = JSObject::Cast(obj);
1891 TaggedArray *properties = TaggedArray::Cast(jsObj->GetProperties());
1892 TaggedArray *elements = TaggedArray::Cast(jsObj->GetElements());
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
H A Dintrinsics_api_impl.cpp200 auto jsObj = object->GetNapiValue(env); in JSRuntimeInstanceOfDynamic() local
203 napi_status rc = napi_instanceof(env, jsObj, jsCtor, &res); in JSRuntimeInstanceOfDynamic()
/arkcompiler/ets_runtime/ecmascript/napi/test/
H A Djsnapi_sample.cpp1209 Local<JSValueRef> jsObj = claFunc->Constructor(vm, argv, 1); in New() local
1210 Local<ObjectRef> obj = jsObj->ToObject(vm); in New()
1450 Local<JSValueRef> jsObj = claFunc->Constructor(vm, argv, 1); in New() local
1451 Local<ObjectRef> obj = jsObj->ToObject(vm); in New()
1555 Local<JSValueRef> jsObj = claFunc->Constructor(vm, argv, 1); in New() local
1556 Local<ObjectRef> obj = jsObj->ToObject(vm); in New()
1653 Local<JSValueRef> jsObj = claFunc->Constructor(vm, argv, 1); in New() local
1654 Local<ObjectRef> obj = jsObj->ToObject(vm); in New()
2572 Local<JSValueRef> jsObj = JSON::Parse(vm_, StringRef::NewFromUtf8(vm_, jsonStr.c_str())); in HWTEST_F_L0() local
2573 Local<ObjectRef> obj = jsObj in HWTEST_F_L0()
[all...]
/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_stubs-inl.h325 JSHandle<JSTaggedValue> jsObj(JSTaggedValue::ToObject(thread, obj)); in RuntimeDelObjProp()
329 bool ret = JSTaggedValue::DeletePropertyOrThrow(thread, jsObj, propKey); in RuntimeDelObjProp()
H A Druntime_stubs.cpp3507 JSTaggedValue jsObj = JSProxy::ConstructInternal(info); in NewObject() local
3509 return jsObj; in NewObject()

Completed in 44 milliseconds