From f0a6062012c4e09553877c9feedb3fbc3d4625b9 Mon Sep 17 00:00:00 2001 From: cknight Date: Thu, 30 Jan 2020 01:57:29 +0000 Subject: Partial implementation of node os polyfill based on currently available Deno functionality (#3821) --- std/node/module.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'std/node/module.ts') 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 -- cgit v1.2.3