diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2020-01-15 20:13:12 +0100 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-15 14:13:12 -0500 |
commit | 3eab20ce42458fced42dcd031958b07113322e0a (patch) | |
tree | 5444f37030cf5b7158432025ae71b49d06469531 /std/node/module.ts | |
parent | b310f32e39785987ddd3491e189aad06381d0139 (diff) |
feat(std/node): Added node timers builtin (#3634)
Diffstat (limited to 'std/node/module.ts')
-rw-r--r-- | std/node/module.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/std/node/module.ts b/std/node/module.ts index 7ed43349f..599ae2325 100644 --- a/std/node/module.ts +++ b/std/node/module.ts @@ -24,6 +24,7 @@ import "./global.ts"; import * as nodeFS from "./fs.ts"; import * as nodeUtil from "./util.ts"; import * as nodePath from "./path.ts"; +import * as nodeTimers from "./timers.ts"; import * as path from "../path/mod.ts"; import { assert } from "../testing/asserts.ts"; @@ -580,6 +581,7 @@ function createNativeModule(id: string, exports: any): Module { nativeModulePolyfill.set("fs", createNativeModule("fs", nodeFS)); nativeModulePolyfill.set("util", createNativeModule("util", nodeUtil)); nativeModulePolyfill.set("path", createNativeModule("path", nodePath)); +nativeModulePolyfill.set("timers", createNativeModule("timers", nodeTimers)); function loadNativeModule( _filename: string, request: string |