summaryrefslogtreecommitdiff
path: root/runtime/js/12_io.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/12_io.js')
-rw-r--r--runtime/js/12_io.js2
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