diff options
author | Luca Casonato <hello@lcas.dev> | 2021-07-03 21:32:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 21:32:28 +0200 |
commit | bf39b883d6b585a08abb4d272d9edc874545271a (patch) | |
tree | e1dfdd9a269226a40c946d151d209cdb30b8b15a /runtime/js/12_io.js | |
parent | 425b9a8228b62b68e3592771eda1538c9bc098d5 (diff) |
refactor: introduce primordials for ext/web (#11228)
Diffstat (limited to 'runtime/js/12_io.js')
-rw-r--r-- | runtime/js/12_io.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/js/12_io.js b/runtime/js/12_io.js index 2380e0283..a15015351 100644 --- a/runtime/js/12_io.js +++ b/runtime/js/12_io.js @@ -7,12 +7,14 @@ ((window) => { const core = window.Deno.core; + const { DOMException } = window.__bootstrap.domException; const { Uint8Array, ArrayPrototypePush, TypedArrayPrototypeSubarray, TypedArrayPrototypeSet, } = window.__bootstrap.primordials; + const DEFAULT_BUFFER_SIZE = 32 * 1024; // Seek whence values. // https://golang.org/pkg/io/#pkg-constants |