Home
last modified time | relevance | path

Searched refs:dateFunction (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_date_test.cpp58 JSHandle<JSTaggedValue> dateFunction = globalEnv->GetDateFunction(); in JSDateCreate() local
60 …JSDate>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(dateFunction), dateFunction)); in JSDateCreate()
Djs_serializer_test.cpp1564 JSHandle<JSTaggedValue> dateFunction = globalEnv->GetDateFunction(); in JSDateCreate() local
1566 …JSDate>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(dateFunction), dateFunction)); in JSDateCreate()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_lazy_test.cpp99 JSHandle<JSTaggedValue> dateFunction = globalEnv->GetDateFunction(); in HWTEST_F_L0() local
100 ASSERT_TRUE(dateFunction->IsJSFunction()); in HWTEST_F_L0()
103 ASSERT_TRUE(JSTaggedValue::HasProperty(thread, dateFunction, key)); in HWTEST_F_L0()
113 …auto dateFunction = FastRuntimeStub::GetGlobalOwnProperty(thread, globalObj, key.GetTaggedValue()); in HWTEST_F_L0() local
114 ASSERT_TRUE(dateFunction.IsJSFunction()); in HWTEST_F_L0()
Dbuiltins_date_test.cpp65 JSHandle<JSTaggedValue> dateFunction = globalEnv->GetDateFunction(); in JSDateCreateTest() local
67 …JSDate>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(dateFunction), dateFunction)); in JSDateCreateTest()
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp1433 JSHandle<JSFunction> dateFunction(env->GetDateFunction()); in ReadJSDate() local
1434 … JSHandle<JSDate> date = JSHandle<JSDate>::Cast(factory_->NewJSObjectByConstructor(dateFunction)); in ReadJSDate()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins.cpp967 JSHandle<JSObject> dateFunction( in InitializeDate() local
971 JSHandle<JSFunction>(dateFunction), in InitializeDate()
984 SetFunction(env, dateFunction, entry.GetName(), entry.GetEntrypoint(), in InitializeDate()
988 SetConstant(dateFunction, "length", JSTaggedValue(Date::UTC_LENGTH)); in InitializeDate()
990 env->SetDateFunction(thread_, dateFunction); in InitializeDate()
993 dateFunction->GetJSHClass(), in InitializeDate()
/arkcompiler/ets_runtime/ecmascript/serializer/tests/
Dserializer_test.cpp1347 JSHandle<JSTaggedValue> dateFunction = globalEnv->GetDateFunction(); in JSDateCreate() local
1349 …JSDate>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(dateFunction), dateFunction)); in JSDateCreate()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi_expo.cpp2004 JSHandle<JSFunction> dateFunction(globalEnv->GetDateFunction()); in New() local
2005 JSHandle<JSDate> dateObject(factory->NewJSObjectByConstructor(dateFunction)); in New()