summaryrefslogtreecommitdiff
path: root/globals.ts
diff options
context:
space:
mode:
Diffstat (limited to 'globals.ts')
-rw-r--r--globals.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/globals.ts b/globals.ts
index d38fbf47d..184f25163 100644
--- a/globals.ts
+++ b/globals.ts
@@ -45,3 +45,10 @@ function stringifyArgs(args: any[]): string {
}
return out.join(" ");
}
+
+import { fetch } from "./fetch";
+_global["fetch"] = fetch;
+
+import { TextEncoder, TextDecoder } from "text-encoding";
+_global["TextEncoder"] = TextEncoder;
+_global["TextDecoder"] = TextDecoder;