mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
Make Deno.setRaw and Deno.isatty unstable (#4925)
This commit is contained in:
parent
3e9b0da346
commit
dd0b25e313
1 changed files with 4 additions and 2 deletions
|
@ -47,10 +47,11 @@ struct SetRawArgs {
|
||||||
|
|
||||||
pub fn op_set_raw(
|
pub fn op_set_raw(
|
||||||
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.setRaw");
|
||||||
let args: SetRawArgs = serde_json::from_value(args)?;
|
let args: SetRawArgs = serde_json::from_value(args)?;
|
||||||
let rid = args.rid;
|
let rid = args.rid;
|
||||||
let is_raw = args.mode;
|
let is_raw = args.mode;
|
||||||
|
@ -215,10 +216,11 @@ 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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue