summaryrefslogtreecommitdiff
path: root/std/node/module.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/module.ts')
-rw-r--r--std/node/module.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/std/node/module.ts b/std/node/module.ts
index 13b2ac325..8d0160f78 100644
--- a/std/node/module.ts
+++ b/std/node/module.ts
@@ -21,6 +21,7 @@
import "./global.ts";
+import * as nodeBuffer from "./buffer.ts";
import * as nodeFS from "./fs.ts";
import * as nodeUtil from "./util.ts";
import * as nodePath from "./path.ts";
@@ -595,6 +596,7 @@ function createNativeModule(id: string, exports: any): Module {
return mod;
}
+nativeModulePolyfill.set("buffer", createNativeModule("buffer", nodeBuffer));
nativeModulePolyfill.set("fs", createNativeModule("fs", nodeFS));
nativeModulePolyfill.set("events", createNativeModule("events", nodeEvents));
nativeModulePolyfill.set("os", createNativeModule("os", nodeOs));