1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

Make Deno.isatty stable (#4937)

This commit is contained in:
Brayden 2020-04-29 06:43:34 -04:00 committed by GitHub
parent ec41fb69cc
commit 2337fca277
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -791,7 +791,7 @@ declare namespace Deno {
mode?: number; mode?: number;
} }
/** **UNSTABLE**: new API, yet to be vetted /**
* *
* Check if a given resource id (`rid`) is a TTY. * Check if a given resource id (`rid`) is a TTY.
* *

View file

@ -216,11 +216,10 @@ struct IsattyArgs {
pub fn op_isatty( pub fn op_isatty(
isolate: &mut CoreIsolate, isolate: &mut CoreIsolate,
state: &State, _state: &State,
args: Value, args: Value,
_zero_copy: Option<ZeroCopyBuf>, _zero_copy: Option<ZeroCopyBuf>,
) -> Result<JsonOp, OpError> { ) -> Result<JsonOp, OpError> {
state.check_unstable("Deno.isatty");
let args: IsattyArgs = serde_json::from_value(args)?; let args: IsattyArgs = serde_json::from_value(args)?;
let rid = args.rid; let rid = args.rid;