summaryrefslogtreecommitdiff
path: root/ext
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 /ext
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 'ext')
-rw-r--r--ext/fs/30_fs.js3
-rw-r--r--ext/io/12_io.js8
-rw-r--r--ext/node/polyfills/tty.js8
3 files changed, 10 insertions, 9 deletions
diff --git a/ext/fs/30_fs.js b/ext/fs/30_fs.js
index 3858bba26..c2fb66528 100644
--- a/ext/fs/30_fs.js
+++ b/ext/fs/30_fs.js
@@ -72,7 +72,6 @@ import {
op_fs_utime_sync,
op_fs_write_file_async,
op_fs_write_file_sync,
- op_is_terminal,
op_set_raw,
} from "ext:core/ops";
const {
@@ -769,7 +768,7 @@ class FsFile {
}
isTerminal() {
- return op_is_terminal(this.#rid);
+ return core.isTerminal(this.#rid);
}
setRaw(mode, options = {}) {
diff --git a/ext/io/12_io.js b/ext/io/12_io.js
index fbaf28de7..f73cb57a6 100644
--- a/ext/io/12_io.js
+++ b/ext/io/12_io.js
@@ -5,7 +5,7 @@
// Thank you! We love Go! <3
import { core, internals, primordials } from "ext:core/mod.js";
-import { op_is_terminal, op_set_raw } from "ext:core/ops";
+import { op_set_raw } from "ext:core/ops";
const {
Uint8Array,
ArrayPrototypePush,
@@ -222,7 +222,7 @@ class Stdin {
}
isTerminal() {
- return op_is_terminal(this.#rid);
+ return core.isTerminal(this.#rid);
}
}
@@ -262,7 +262,7 @@ class Stdout {
}
isTerminal() {
- return op_is_terminal(this.#rid);
+ return core.isTerminal(this.#rid);
}
}
@@ -302,7 +302,7 @@ class Stderr {
}
isTerminal() {
- return op_is_terminal(this.#rid);
+ return core.isTerminal(this.#rid);
}
}
diff --git a/ext/node/polyfills/tty.js b/ext/node/polyfills/tty.js
index b2260a47e..5cbb55ecd 100644
--- a/ext/node/polyfills/tty.js
+++ b/ext/node/polyfills/tty.js
@@ -1,10 +1,12 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { primordials } from "ext:core/mod.js";
+import { core, primordials } from "ext:core/mod.js";
const {
Error,
} = primordials;
-import { op_is_terminal } from "ext:core/ops";
+const {
+ isTerminal,
+} = core;
import { ERR_INVALID_FD } from "ext:deno_node/internal/errors.ts";
import { LibuvStreamWrap } from "ext:deno_node/internal_binding/stream_wrap.ts";
@@ -23,7 +25,7 @@ function isatty(fd) {
* correspond to `fd` 0, 1, 2 (stdin, stdout, stderr). This may change in
* the future.
*/
- return op_is_terminal(fd);
+ return isTerminal(fd);
} catch (_) {
return false;
}