MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / setTimeoutForTest1

Function setTimeoutForTest1

tests/vitest.setup.ts:240–246  ·  view source on GitHub ↗
(...args: any)

Source from the content-addressed store, hash-verified

238
239Object.assign(global, {
240 setTimeoutForTest1(...args: any) {
241 // 注意: function XXX (){} 会导致 Class prototype 出现
242 //@ts-ignore
243 if (typeof this === "object" && this && this !== global) throw new TypeError("Illegal invocation");
244 //@ts-ignore
245 return this.setTimeout(...args);
246 },
247});
248//@ts-ignore 强行修改 setTimeoutForTest1 toString 为 原生代码显示
249global.setTimeoutForTest1.toString = () =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected