diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-04-25 09:31:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 09:31:54 -0400 |
commit | 0c47cd67850e4c195212c8edfcb3a62b8435ed3a (patch) | |
tree | b397da0f498e76e078b6b79365388b31f2bd97ba /cli/ops/fs.rs | |
parent | b28e60ecaf5d48c36cb435361834f4884d9451c2 (diff) |
introduce unstable flag, make a few things unstable (#4892)
Diffstat (limited to 'cli/ops/fs.rs')
-rw-r--r-- | cli/ops/fs.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/ops/fs.rs b/cli/ops/fs.rs index c46da6c04..5ab534810 100644 --- a/cli/ops/fs.rs +++ b/cli/ops/fs.rs @@ -647,6 +647,7 @@ fn op_link( args: Value, _zero_copy: Option<ZeroCopyBuf>, ) -> Result<JsonOp, OpError> { + state.check_unstable("Deno.link"); let args: LinkArgs = serde_json::from_value(args)?; let oldpath = resolve_from_cwd(Path::new(&args.oldpath))?; let newpath = resolve_from_cwd(Path::new(&args.newpath))?; @@ -675,6 +676,7 @@ fn op_symlink( args: Value, _zero_copy: Option<ZeroCopyBuf>, ) -> Result<JsonOp, OpError> { + state.check_unstable("Deno.symlink"); let args: SymlinkArgs = serde_json::from_value(args)?; let oldpath = resolve_from_cwd(Path::new(&args.oldpath))?; let newpath = resolve_from_cwd(Path::new(&args.newpath))?; |