Home
last modified time | relevance | path

Searched refs:dateFunction (Results 1 – 7 of 7) 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.cpp1464 JSHandle<JSTaggedValue> dateFunction = globalEnv->GetDateFunction(); in JSDateCreate() local
1466 …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/builtins/
Dbuiltins.cpp906 JSHandle<JSObject> dateFunction( in InitializeDate() local
909 …JSHandle<JSFunction>(dateFunction)->SetFunctionPrototype(thread_, dateFuncInstanceHClass.GetTagged… in InitializeDate()
964 SetFunction(env, dateFunction, "now", Date::Now, FunctionLength::ZERO); in InitializeDate()
965 SetFunction(env, dateFunction, "parse", Date::Parse, FunctionLength::ONE); in InitializeDate()
966 SetFunction(env, dateFunction, "UTC", Date::UTC, utcLength); in InitializeDate()
969 SetConstant(dateFunction, "length", JSTaggedValue(utcLength)); in InitializeDate()
971 env->SetDateFunction(thread_, dateFunction); in InitializeDate()
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp1414 JSHandle<JSFunction> dateFunction(env->GetDateFunction()); in ReadJSDate() local
1415 … JSHandle<JSDate> date = JSHandle<JSDate>::Cast(factory_->NewJSObjectByConstructor(dateFunction)); in ReadJSDate()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp2483 JSHandle<JSFunction> dateFunction(globalEnv->GetDateFunction()); in New() local
2484 JSHandle<JSDate> dateObject(factory->NewJSObjectByConstructor(dateFunction)); in New()