From 9df917c0be620055c0d2eb53f76d4f1290d5e9e5 Mon Sep 17 00:00:00 2001 From: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:08:10 -0800 Subject: chore: upgrade deno_core (#22725) --- ext/node/polyfills/tty.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ext/node/polyfills') 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; } -- cgit v1.2.3