2020-04-22 10:06:51 -04:00
|
|
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
|
|
|
|
|
|
// The specification refers to internal slots. In most cases, ECMAScript
|
|
|
|
// Private Fields are not sufficient for these, as they are often accessed
|
|
|
|
// outside of the class itself and using a WeakMap gets really complex to hide
|
|
|
|
// this data from the public, therefore we will use unique symbols which are
|
|
|
|
// not available in the runtime.
|
|
|
|
|
2020-04-30 10:40:10 -04:00
|
|
|
export const abortAlgorithm = Symbol("abortAlgorithm");
|
|
|
|
export const abortSteps = Symbol("abortSteps");
|
2020-04-22 10:06:51 -04:00
|
|
|
export const asyncIteratorReader = Symbol("asyncIteratorReader");
|
|
|
|
export const autoAllocateChunkSize = Symbol("autoAllocateChunkSize");
|
2020-04-30 10:40:10 -04:00
|
|
|
export const backpressure = Symbol("backpressure");
|
2020-05-03 15:10:52 -04:00
|
|
|
export const backpressureChangePromise = Symbol("backpressureChangePromise");
|
2020-04-22 10:06:51 -04:00
|
|
|
export const byobRequest = Symbol("byobRequest");
|
|
|
|
export const cancelAlgorithm = Symbol("cancelAlgorithm");
|
|
|
|
export const cancelSteps = Symbol("cancelSteps");
|
2020-04-30 10:40:10 -04:00
|
|
|
export const closeAlgorithm = Symbol("closeAlgorithm");
|
2020-04-22 10:06:51 -04:00
|
|
|
export const closedPromise = Symbol("closedPromise");
|
2020-04-30 10:40:10 -04:00
|
|
|
export const closeRequest = Symbol("closeRequest");
|
2020-04-22 10:06:51 -04:00
|
|
|
export const closeRequested = Symbol("closeRequested");
|
|
|
|
export const controlledReadableByteStream = Symbol(
|
|
|
|
"controlledReadableByteStream"
|
|
|
|
);
|
|
|
|
export const controlledReadableStream = Symbol("controlledReadableStream");
|
2020-05-03 15:10:52 -04:00
|
|
|
export const controlledTransformStream = Symbol("controlledTransformStream");
|
2020-04-30 10:40:10 -04:00
|
|
|
export const controlledWritableStream = Symbol("controlledWritableStream");
|
2020-04-22 10:06:51 -04:00
|
|
|
export const disturbed = Symbol("disturbed");
|
2020-04-30 10:40:10 -04:00
|
|
|
export const errorSteps = Symbol("errorSteps");
|
2020-05-03 15:10:52 -04:00
|
|
|
export const flushAlgorithm = Symbol("flushAlgorithm");
|
2020-04-22 10:06:51 -04:00
|
|
|
export const forAuthorCode = Symbol("forAuthorCode");
|
2020-04-30 10:40:10 -04:00
|
|
|
export const inFlightWriteRequest = Symbol("inFlightWriteRequest");
|
|
|
|
export const inFlightCloseRequest = Symbol("inFlightCloseRequest");
|
2020-04-22 10:06:51 -04:00
|
|
|
export const isFakeDetached = Symbol("isFakeDetached");
|
|
|
|
export const ownerReadableStream = Symbol("ownerReadableStream");
|
2020-04-30 10:40:10 -04:00
|
|
|
export const ownerWritableStream = Symbol("ownerWritableStream");
|
|
|
|
export const pendingAbortRequest = Symbol("pendingAbortRequest");
|
2020-04-22 10:06:51 -04:00
|
|
|
export const preventCancel = Symbol("preventCancel");
|
|
|
|
export const pullAgain = Symbol("pullAgain");
|
|
|
|
export const pullAlgorithm = Symbol("pullAlgorithm");
|
|
|
|
export const pulling = Symbol("pulling");
|
|
|
|
export const pullSteps = Symbol("pullSteps");
|
|
|
|
export const queue = Symbol("queue");
|
|
|
|
export const queueTotalSize = Symbol("queueTotalSize");
|
2020-05-03 15:10:52 -04:00
|
|
|
export const readable = Symbol("readable");
|
2020-04-22 10:06:51 -04:00
|
|
|
export const readableStreamController = Symbol("readableStreamController");
|
|
|
|
export const reader = Symbol("reader");
|
|
|
|
export const readRequests = Symbol("readRequests");
|
2020-04-30 10:40:10 -04:00
|
|
|
export const readyPromise = Symbol("readyPromise");
|
2020-04-22 10:06:51 -04:00
|
|
|
export const started = Symbol("started");
|
|
|
|
export const state = Symbol("state");
|
|
|
|
export const storedError = Symbol("storedError");
|
|
|
|
export const strategyHWM = Symbol("strategyHWM");
|
|
|
|
export const strategySizeAlgorithm = Symbol("strategySizeAlgorithm");
|
2020-05-03 15:10:52 -04:00
|
|
|
export const transformAlgorithm = Symbol("transformAlgorithm");
|
|
|
|
export const transformStreamController = Symbol("transformStreamController");
|
2020-04-30 10:40:10 -04:00
|
|
|
export const writableStreamController = Symbol("writableStreamController");
|
|
|
|
export const writeAlgorithm = Symbol("writeAlgorithm");
|
2020-05-03 15:10:52 -04:00
|
|
|
export const writable = Symbol("writable");
|
2020-04-30 10:40:10 -04:00
|
|
|
export const writer = Symbol("writer");
|
|
|
|
export const writeRequests = Symbol("writeRequests");
|