diff options
author | Brayden <xpyxel@gmail.com> | 2020-04-29 06:43:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 12:43:34 +0200 |
commit | 2337fca277e84e063549479a63a45820fcead49c (patch) | |
tree | 7a0a844e21edbfb056be2cb123a866caa4e539cc | |
parent | ec41fb69ccabf012a6368a8df5166578e5ee2307 (diff) |
Make Deno.isatty stable (#4937)
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 2 | ||||
-rw-r--r-- | cli/ops/tty.rs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 4659c1ff7..edc9668e7 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -791,7 +791,7 @@ declare namespace Deno { mode?: number; } - /** **UNSTABLE**: new API, yet to be vetted + /** * * Check if a given resource id (`rid`) is a TTY. * diff --git a/cli/ops/tty.rs b/cli/ops/tty.rs index 447af9a2d..cf7f62ed8 100644 --- a/cli/ops/tty.rs +++ b/cli/ops/tty.rs @@ -216,11 +216,10 @@ struct IsattyArgs { pub fn op_isatty( isolate: &mut CoreIsolate, - state: &State, + _state: &State, args: Value, _zero_copy: Option<ZeroCopyBuf>, ) -> Result<JsonOp, OpError> { - state.check_unstable("Deno.isatty"); let args: IsattyArgs = serde_json::from_value(args)?; let rid = args.rid; |