diff options
Diffstat (limited to 'ext/fetch/22_body.js')
-rw-r--r-- | ext/fetch/22_body.js | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/ext/fetch/22_body.js b/ext/fetch/22_body.js index 2d633ae39..e16fd4c54 100644 --- a/ext/fetch/22_body.js +++ b/ext/fetch/22_body.js @@ -12,6 +12,28 @@ /// <reference lib="esnext" /> import { core, primordials } from "ext:core/mod.js"; +const { + isAnyArrayBuffer, + isArrayBuffer, +} = core; +const { + ArrayBufferIsView, + ArrayPrototypeMap, + DataViewPrototypeGetBuffer, + DataViewPrototypeGetByteLength, + DataViewPrototypeGetByteOffset, + JSONParse, + ObjectDefineProperties, + ObjectPrototypeIsPrototypeOf, + TypedArrayPrototypeGetBuffer, + TypedArrayPrototypeGetByteLength, + TypedArrayPrototypeGetByteOffset, + TypedArrayPrototypeGetSymbolToStringTag, + TypedArrayPrototypeSlice, + TypeError, + Uint8Array, +} = primordials; + import * as webidl from "ext:deno_webidl/00_webidl.js"; import { parseUrlEncoded, @@ -36,27 +58,6 @@ import { readableStreamTee, readableStreamThrowIfErrored, } from "ext:deno_web/06_streams.js"; -const { - ArrayBufferIsView, - ArrayPrototypeMap, - DataViewPrototypeGetBuffer, - DataViewPrototypeGetByteLength, - DataViewPrototypeGetByteOffset, - JSONParse, - ObjectDefineProperties, - ObjectPrototypeIsPrototypeOf, - TypedArrayPrototypeGetBuffer, - TypedArrayPrototypeGetByteLength, - TypedArrayPrototypeGetByteOffset, - TypedArrayPrototypeGetSymbolToStringTag, - TypedArrayPrototypeSlice, - TypeError, - Uint8Array, -} = primordials; -const { - isAnyArrayBuffer, - isArrayBuffer, -} = core; /** * @param {Uint8Array | string} chunk |