summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-27 10:54:55 -0400
committerGitHub <noreply@github.com>2020-04-27 10:54:55 -0400
commitdd0b25e313c5ad89f4ce3dd0929d2d77220a4b8c (patch)
treeab15d872f214a91756cde0856303d310669a303a
parent3e9b0da346e61f900120285a150b70aa1ae5724e (diff)
Make Deno.setRaw and Deno.isatty unstable (#4925)
-rw-r--r--cli/ops/tty.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/ops/tty.rs b/cli/ops/tty.rs
index 53736ae91..447af9a2d 100644
--- a/cli/ops/tty.rs
+++ b/cli/ops/tty.rs
@@ -47,10 +47,11 @@ struct SetRawArgs {
pub fn op_set_raw(
isolate: &mut CoreIsolate,
- _state: &State,
+ state: &State,
args: Value,
_zero_copy: Option<ZeroCopyBuf>,
) -> Result<JsonOp, OpError> {
+ state.check_unstable("Deno.setRaw");
let args: SetRawArgs = serde_json::from_value(args)?;
let rid = args.rid;
let is_raw = args.mode;
@@ -215,10 +216,11 @@ 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;