char/avril

(wip) why'd you have to go and make things so complicaaaaated?

git clone https://git.t4t.associates/char/avril

Charlotte Somport timers and structured clone extensions to typescriptc42f8c8

main
427 B24 linesraw
1import { ObjectDefineProperty } from "ext:core/primordials";
2import {
3  clearInterval,
4  clearTimeout,
5  queueMicrotask,
6  setInterval,
7  setTimeout,
8} from "./timers.js";
9for (
10  const fn of [
11    setTimeout,
12    setInterval,
13    clearTimeout,
14    clearInterval,
15    queueMicrotask,
16  ]
17) {
18  ObjectDefineProperty(globalThis, fn.name, {
19    value: fn,
20    writable: true,
21    enumerable: true,
22    configurable: true,
23  });
24}