diff options
Diffstat (limited to 'cli/tsc/11_timers.js')
-rw-r--r-- | cli/tsc/11_timers.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tsc/11_timers.js b/cli/tsc/11_timers.js new file mode 100644 index 000000000..59fc0dc76 --- /dev/null +++ b/cli/tsc/11_timers.js @@ -0,0 +1,11 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. + +((window) => { + const dispatchJson = window.__bootstrap.dispatchJson; + + function opNow() { + return dispatchJson.sendSync("op_now"); + } + + window.__bootstrap.timers = { opNow }; +})(this); |