summaryrefslogtreecommitdiff
path: root/cli/js/globals.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-05-01 00:40:10 +1000
committerGitHub <noreply@github.com>2020-04-30 10:40:10 -0400
commit81c75332fbf2635f5275cc85053dc244f211471d (patch)
treeb0142c4dddf6f2ef2d6c48c0470e5bdfe822b499 /cli/js/globals.ts
parent84d687e958ab93afb161def4a8ab47f8994307c9 (diff)
feat: Add WritableStreams (and enable ReadableStreams piping) (#4980)
Diffstat (limited to 'cli/js/globals.ts')
-rw-r--r--cli/js/globals.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/js/globals.ts b/cli/js/globals.ts
index 87309a158..caf069ffd 100644
--- a/cli/js/globals.ts
+++ b/cli/js/globals.ts
@@ -23,6 +23,8 @@ import * as workers from "./web/workers.ts";
import * as performanceUtil from "./web/performance.ts";
import * as request from "./web/request.ts";
import * as readableStream from "./web/streams/readable_stream.ts";
+import * as queuingStrategy from "./web/streams/queuing_strategy.ts";
+import * as writableStream from "./web/streams/writable_stream.ts";
// These imports are not exposed and therefore are fine to just import the
// symbols required.
@@ -216,6 +218,10 @@ export const windowOrWorkerGlobalScopeProperties = {
AbortController: nonEnumerable(abortController.AbortControllerImpl),
AbortSignal: nonEnumerable(abortSignal.AbortSignalImpl),
Blob: nonEnumerable(blob.DenoBlob),
+ ByteLengthQueuingStrategy: nonEnumerable(
+ queuingStrategy.ByteLengthQueuingStrategyImpl
+ ),
+ CountQueuingStrategy: nonEnumerable(queuingStrategy.CountQueuingStrategyImpl),
File: nonEnumerable(domFile.DomFileImpl),
CustomEvent: nonEnumerable(customEvent.CustomEventImpl),
DOMException: nonEnumerable(domException.DOMExceptionImpl),
@@ -232,6 +238,7 @@ export const windowOrWorkerGlobalScopeProperties = {
Response: nonEnumerable(fetchTypes.Response),
performance: writable(new performanceUtil.Performance()),
Worker: nonEnumerable(workers.WorkerImpl),
+ WritableStream: nonEnumerable(writableStream.WritableStreamImpl),
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any