diff options
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 |