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

Method ctor

source/binding/NodeJS/src/apis/job.cpp:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128JobImpl* JobImpl::ctor(const maajs::CallbackInfo& info)
129{
130 auto job = new JobImpl;
131 job->source = maajs::PersistentObject(info[0].As<maajs::ObjectType>());
132 job->id = maajs::JSConvert<uint64_t>::from_value(info[1]);
133 return job;
134}
135
136void JobImpl::init_proto(maajs::ObjectType proto, maajs::FunctionType)
137{

Callers

nothing calls this directly

Calls 1

PersistentObjectFunction · 0.50

Tested by

no test coverage detected