(f: () => any)
| 297 | let mySandbox: typeof sharedInitCopy | undefined = undefined; |
| 298 | |
| 299 | const createFuncWrapper = (f: () => any) => { |
| 300 | return function (this: any) { |
| 301 | const ret = f.call(global); |
| 302 | if (ret === global) return mySandbox; |
| 303 | return ret; |
| 304 | }; |
| 305 | }; |
| 306 | |
| 307 | // 用 eventHandling 机制模拟 onxxxxxxx 事件设置 |
| 308 | // 监听事件实际上的方法是eventObject.handleEvent |
no test coverage detected