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/js/90_deno_ns.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/js') diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index c240d1ea2..3c13489c7 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -50,6 +50,8 @@ lstat: __bootstrap.fs.lstat, truncateSync: __bootstrap.fs.truncateSync, truncate: __bootstrap.fs.truncate, + ftruncateSync: __bootstrap.fs.ftruncateSync, + ftruncate: __bootstrap.fs.ftruncate, errors: __bootstrap.errors.errors, customInspect: __bootstrap.console.customInspect, inspect: __bootstrap.console.inspect, @@ -124,8 +126,6 @@ startTls: __bootstrap.tls.startTls, fstatSync: __bootstrap.fs.fstatSync, fstat: __bootstrap.fs.fstat, - ftruncateSync: __bootstrap.fs.ftruncateSync, - ftruncate: __bootstrap.fs.ftruncate, umask: __bootstrap.fs.umask, futime: __bootstrap.fs.futime, futimeSync: __bootstrap.fs.futimeSync, -- cgit v1.2.3