mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
Make Deno.isatty stable (#4937)
This commit is contained in:
parent
ec41fb69cc
commit
2337fca277
2 changed files with 2 additions and 3 deletions
2
cli/js/lib.deno.ns.d.ts
vendored
2
cli/js/lib.deno.ns.d.ts
vendored
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue