From f5a9474952f459a5095e0aae68e0984fdd84b210 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Sun, 11 Apr 2021 20:05:22 +0800 Subject: feat: stabilize Deno.ftruncate and Deno.ftruncateSync (#10126) This stabilizes Deno.ftruncate and Deno.ftruncateSync. This is a well known system call and the interface is not going to change. Implicitly requires write permissions as the file has to be opened with write to be truncated. --- runtime/ops/fs.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'runtime/ops') diff --git a/runtime/ops/fs.rs b/runtime/ops/fs.rs index 3d9802b08..a084fdb15 100644 --- a/runtime/ops/fs.rs +++ b/runtime/ops/fs.rs @@ -1299,7 +1299,6 @@ fn op_ftruncate_sync( args: FtruncateArgs, _zero_copy: Option, ) -> Result<(), AnyError> { - super::check_unstable(state, "Deno.ftruncate"); let rid = args.rid; let len = args.len as u64; StdFileResource::with(state, rid, |r| match r { @@ -1314,7 +1313,6 @@ async fn op_ftruncate_async( args: FtruncateArgs, _zero_copy: Option, ) -> Result<(), AnyError> { - super::check_unstable2(&state, "Deno.ftruncate"); let rid = args.rid; let len = args.len as u64; -- cgit v1.2.3