mirror of
https://github.com/denoland/deno.git
synced 2025-08-31 07:47:46 +00:00
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.
This commit is contained in:
parent
af62e0833d
commit
ab0c33ebf8
9 changed files with 77 additions and 70 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue