UNPKG

509 BMarkdownView Raw
1* Worker API
2 * `setTimeout` / `clearTimeout` / `setInterval` / `clearInterval`
3 Forwarding to the default implementation (in NativeModule TimerWrap).
4
5 Alternately, we can integrate this with our own `tick` function:
6
7 http://code.google.com/p/v8-juice/source/browse/branches/edge/src/client/shell/js/MockTimer.js
8 (derived from https://github.com/esbie/js-mock-timers)
9
10 * `onerror` handler
11 Catch runtime errors; also addEventListener 'error'.
12 * `dispatchEvent`?