From ab0c33ebf83f25b526f732e3e07de5e75a6e69bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 26 Oct 2022 00:23:21 +0200 Subject: feat: Stabilize Deno.consoleSize() API (#15933) This commit stabilizes "Deno.consoleSize()" API. There is one change compared to previous unstable API, in that the API doesn't accept any arguments. Console size is established by querying syscalls for stdio streams at fd 0, 1 and 2. --- runtime/js/90_deno_ns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/js/90_deno_ns.js') 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, -- cgit v1.2.3