summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-03-06 15:08:10 -0800
committerGitHub <noreply@github.com>2024-03-06 15:08:10 -0800
commit9df917c0be620055c0d2eb53f76d4f1290d5e9e5 (patch)
tree3252f37bbc91a743e2b265024cc007a1918763ff /runtime/js
parent6b48aff8fb639a798c8b1a044a3dd7caad433c48 (diff)
chore: upgrade deno_core (#22725)
<!-- Before submitting a PR, please read https://docs.deno.com/runtime/manual/references/contributing 1. Give the PR a descriptive title. Examples of good title: - fix(std/http): Fix race condition in server - docs(console): Update docstrings - feat(doc): Handle nested reexports Examples of bad title: - fix #7123 - update docs - fix bugs 2. Ensure there is a related issue and it is referenced in the PR text. 3. Ensure there are tests that cover the changes. 4. Ensure `cargo test` passes. 5. Ensure `./tools/format.js` passes without changing files. 6. Ensure `./tools/lint.js` passes. 7. Open as a draft PR if your work is still in progress. The CI won't run all steps, but you can add '[ci]' to a commit message to force it to. 8. If you would like to run the benchmarks on the CI, add the 'ci-bench' label. -->
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/40_tty.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/js/40_tty.js b/runtime/js/40_tty.js
index dd364f18d..7cf1e4f5d 100644
--- a/runtime/js/40_tty.js
+++ b/runtime/js/40_tty.js
@@ -1,9 +1,12 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { internals, primordials } from "ext:core/mod.js";
-import { op_console_size, op_is_terminal } from "ext:core/ops";
+import { core, internals, primordials } from "ext:core/mod.js";
+import { op_console_size } from "ext:core/ops";
const {
Uint32Array,
} = primordials;
+const {
+ isTerminal,
+} = core;
const size = new Uint32Array(2);
@@ -18,7 +21,7 @@ function isatty(rid) {
new Error().stack,
"Use `Deno.stdin.isTerminal()`, `Deno.stdout.isTerminal()`, `Deno.stderr.isTerminal()` or `Deno.FsFile.isTerminal()` instead.",
);
- return op_is_terminal(rid);
+ return isTerminal(rid);
}
export { consoleSize, isatty };