MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / ctor

Method ctor

source/binding/NodeJS/src/apis/tasker.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17TaskJobImpl* TaskJobImpl::ctor(const maajs::CallbackInfo& info)
18{
19 auto job = new TaskJobImpl;
20 job->source = maajs::PersistentObject(info[0].As<maajs::ObjectType>());
21 job->id = maajs::JSConvert<uint64_t>::from_value(info[1]);
22 return job;
23}
24
25void TaskJobImpl::init_proto(maajs::ObjectType proto, maajs::FunctionType)
26{

Callers

nothing calls this directly

Calls 4

Utf8ValueMethod · 0.80
PersistentObjectFunction · 0.50
MaaTaskerCreateFunction · 0.50
LengthMethod · 0.45

Tested by

no test coverage detected