MCPcopy Create free account
hub / github.com/GrowthEase/GameSentry / construct

Function construct

lib/component/utils/utils.js:53–59  ·  view source on GitHub ↗
(Target, argArray)

Source from the content-addressed store, hash-verified

51 const instanceCache = new Map();
52 return new Proxy(Class, {
53 construct(Target, argArray) {
54 const handle = argArray[0].toUInt32();
55 if (!instanceCache.has(handle)) {
56 instanceCache.set(handle, new Target(argArray[0]));
57 }
58 return instanceCache.get(handle);
59 }
60 });
61}
62

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected