diff options
| author | cknight <cknight1234@gmail.com> | 2020-01-30 01:57:29 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-29 20:57:29 -0500 |
| commit | f0a6062012c4e09553877c9feedb3fbc3d4625b9 (patch) | |
| tree | d3e847c285718a4a8a422525cbc9d1e74220a3ec /std/node/module.ts | |
| parent | 161adfc51b750a7c8c62a898ea9948c2ad5b6cd9 (diff) | |
Partial implementation of node os polyfill based on currently available Deno functionality (#3821)
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 599ae2325..f27ef25f2 100644 --- a/std/node/module.ts +++ b/std/node/module.ts @@ -25,6 +25,7 @@ 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 nodeOs from "./os.ts"; import * as path from "../path/mod.ts"; import { assert } from "../testing/asserts.ts"; @@ -582,6 +583,7 @@ nativeModulePolyfill.set("fs", createNativeModule("fs", nodeFS)); nativeModulePolyfill.set("util", createNativeModule("util", nodeUtil)); nativeModulePolyfill.set("path", createNativeModule("path", nodePath)); nativeModulePolyfill.set("timers", createNativeModule("timers", nodeTimers)); +nativeModulePolyfill.set("os", createNativeModule("os", nodeOs)); function loadNativeModule( _filename: string, request: string |
