Skip to content

Commit

Permalink
Make Deno.isatty stable (denoland#4937)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brayden authored and SASUKE40 committed May 7, 2020
1 parent 2fd7af8 commit 8147ed6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/js/lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
3 changes: 1 addition & 2 deletions cli/ops/tty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8147ed6

Please sign in to comment.