aboutsummaryrefslogtreecommitdiff
path: root/src/js/node/timers.js
blob: 4e907a7ab262bf91ec29c7d11691db9504b57734 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Hardcoded module "node:timers"
// This implementation isn't 100% correct
// Ref/unref does not impact whether the process is kept alive

export var { setTimeout, clearTimeout, setInterval, setImmediate, clearInterval, clearImmediate } = globalThis;

export default {
  setInterval,
  setImmediate,
  setTimeout,
  clearInterval,
  clearTimeout,
  [Symbol.for("CommonJS")]: 0,
};