summaryrefslogtreecommitdiff
path: root/std/node/module.ts
diff options
context:
space:
mode:
authorcrowlKats <crowlkats@gmail.com>2020-03-14 21:43:49 +0100
committerGitHub <noreply@github.com>2020-03-14 16:43:49 -0400
commit9648d3da1483ab77d9133ecd32fa240a597134eb (patch)
treee5b55592e9f7a94709e1c69528aa98dae0974edc /std/node/module.ts
parent92bbce04b9a268a9f87e1993a39fffb852c508ec (diff)
Add node querystring polyfill (#4370)
Diffstat (limited to 'std/node/module.ts')
-rw-r--r--std/node/module.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/std/node/module.ts b/std/node/module.ts
index 3520d804b..01f1f0477 100644
--- a/std/node/module.ts
+++ b/std/node/module.ts
@@ -27,6 +27,7 @@ import * as nodePath from "./path.ts";
import * as nodeTimers from "./timers.ts";
import * as nodeOs from "./os.ts";
import * as nodeEvents from "./events.ts";
+import * as nodeQueryString from "./querystring.ts";
import * as path from "../path/mod.ts";
import { assert } from "../testing/asserts.ts";
@@ -593,6 +594,10 @@ nativeModulePolyfill.set("os", createNativeModule("os", nodeOs));
nativeModulePolyfill.set("path", createNativeModule("path", nodePath));
nativeModulePolyfill.set("timers", createNativeModule("timers", nodeTimers));
nativeModulePolyfill.set("util", createNativeModule("util", nodeUtil));
+nativeModulePolyfill.set(
+ "querystring",
+ createNativeModule("querystring", nodeQueryString)
+);
function loadNativeModule(
_filename: string,