MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / constructor

Method constructor

wxapp/miaoyouHome.js:138–147  ·  view source on GitHub ↗
(t, s)

Source from the content-addressed store, hash-verified

136function Env(t, s) {
137 return new (class {
138 constructor(t, s) {
139 this.name = t;
140 this.data = null;
141 this.dataFile = "box.dat";
142 this.logs = [];
143 this.logSeparator = "\n";
144 this.startTime = new Date().getTime();
145 Object.assign(this, s);
146 this.log("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`);
147 }
148 isNode() {
149 return "undefined" != typeof module && !!module.exports;
150 }

Callers

nothing calls this directly

Calls 2

getTimeMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected