summaryrefslogtreecommitdiff
path: root/cli/js/globals.ts
diff options
context:
space:
mode:
authorYusuke Sakurai <kerokerokerop@gmail.com>2020-04-04 03:55:23 +0900
committerGitHub <noreply@github.com>2020-04-03 14:55:23 -0400
commit24261744857df3cca8c9e05f07cc85c0346a6751 (patch)
tree257edb6bc9c88bd879ef27cba77c040e7cd648c3 /cli/js/globals.ts
parentcb0acfe305a0f2f13773f41a038d8a919c3730ae (diff)
feat: Expose ReadableStream and make Blob more standardized (#4581)
Co-authored-by: crowlkats <crowlkats@gmail.com>
Diffstat (limited to 'cli/js/globals.ts')
-rw-r--r--cli/js/globals.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/js/globals.ts b/cli/js/globals.ts
index e5b7ff85a..6eedb9289 100644
--- a/cli/js/globals.ts
+++ b/cli/js/globals.ts
@@ -18,6 +18,7 @@ import * as urlSearchParams from "./web/url_search_params.ts";
import * as workers from "./web/workers.ts";
import * as performanceUtil from "./web/performance.ts";
import * as request from "./web/request.ts";
+import * as streams from "./web/streams/mod.ts";
// These imports are not exposed and therefore are fine to just import the
// symbols required.
@@ -226,6 +227,7 @@ export const windowOrWorkerGlobalScopeProperties = {
FormData: nonEnumerable(formData.FormData),
TextEncoder: nonEnumerable(textEncoding.TextEncoder),
TextDecoder: nonEnumerable(textEncoding.TextDecoder),
+ ReadableStream: nonEnumerable(streams.ReadableStream),
Request: nonEnumerable(request.Request),
Response: nonEnumerable(fetchTypes.Response),
performance: writable(new performanceUtil.Performance()),