summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/40_tty.js4
-rw-r--r--runtime/js/90_deno_ns.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/js/40_tty.js b/runtime/js/40_tty.js
index be5154fa2..8ce3e83ef 100644
--- a/runtime/js/40_tty.js
+++ b/runtime/js/40_tty.js
@@ -10,8 +10,8 @@
const ops = core.ops;
const size = new Uint32Array(2);
- function consoleSize(rid) {
- ops.op_console_size(rid, size);
+ function consoleSize() {
+ ops.op_console_size(size);
return { columns: size[0], rows: size[1] };
}
diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js
index 3bfd26da7..00d343f74 100644
--- a/runtime/js/90_deno_ns.js
+++ b/runtime/js/90_deno_ns.js
@@ -120,10 +120,10 @@
refTimer: __bootstrap.timers.refTimer,
unrefTimer: __bootstrap.timers.unrefTimer,
hostname: __bootstrap.os.hostname,
+ consoleSize: __bootstrap.tty.consoleSize,
};
__bootstrap.denoNsUnstable = {
- consoleSize: __bootstrap.tty.consoleSize,
DiagnosticCategory: __bootstrap.diagnostics.DiagnosticCategory,
osRelease: __bootstrap.os.osRelease,
systemMemoryInfo: __bootstrap.os.systemMemoryInfo,