diff options
author | Nikolai Vavilov <vvnicholas@gmail.com> | 2020-06-06 22:56:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-06 15:56:49 -0400 |
commit | 09ee9a828009ab1fbe59f611da64f48f9e9e573b (patch) | |
tree | 9333c9878682afe2f473b0203afd9a63dc8fd820 /std/node/module.ts | |
parent | 26287ef87b2b238e25a1ab44a43cde24eea15bfc (diff) |
feat(std/node): Buffer (#5925)
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 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)); |