(...args: any)
| 238 | |
| 239 | Object.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 为 原生代码显示 |
| 249 | global.setTimeoutForTest1.toString = () => |
no outgoing calls
no test coverage detected