-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdone.js
More file actions
22 lines (19 loc) · 829 Bytes
/
Copy pathdone.js
File metadata and controls
22 lines (19 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import doneConsole from "done:console.js";
import doneProcess from "done:process.js";
import doneTextDecoder from "done:text-decoder.js";
import doneTextEncoder from "done:text-encoder.js";
import doneFetch from "done:fetch.js";
import doneURL from "done:url.js";
import doneSyscallWrapper from "done:syscall-wrapper.js";
import doneInterpretFlags from "done:argv.js";
import "done:special-mode-dispatcher.js";
globalThis.console = doneConsole;
globalThis.process = doneProcess;
globalThis.exit = doneProcess.exit;
globalThis.TextDecoder = doneTextDecoder
globalThis.TextEncoder = doneTextEncoder
globalThis.fetch = doneFetch;
globalThis.URL = doneURL;
// TODO: maybe make done obj (and other build in?) stuff not overridable?
globalThis.done.interpretFlags = doneInterpretFlags;
globalThis.done.syscall = doneSyscallWrapper;