From e0bab40c85780f765bed78bd2e67f376b6883594 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 17 Jun 2024 11:12:43 +0200 Subject: fs: add truncate() file method Trunates the file referenced by a file handle Signed-off-by: Felix Fietkau --- tests/custom/03_stdlib/40_proto | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/custom') diff --git a/tests/custom/03_stdlib/40_proto b/tests/custom/03_stdlib/40_proto index 2a12966..6fed529 100644 --- a/tests/custom/03_stdlib/40_proto +++ b/tests/custom/03_stdlib/40_proto @@ -38,6 +38,7 @@ When invoked with two arguments, returns the given value. Hello, World! [ { + "truncate": "function truncate(...) { [native code] }", "isatty": "function isatty(...) { [native code] }", "error": "function error(...) { [native code] }", "fileno": "function fileno(...) { [native code] }", -- cgit v1.2.3