runtime/secure_file.ts view source
(path: string, mode: number): void import {assert_secure_mode} from '@fuzdev/fuz_app/runtime/secure_file.js'; Refuse any group/other-accessible mode (only 0600/0400 pass).
Callers own the platform gating: the real runtimes skip the check where
modes aren't meaningful (Node on Windows, a null Deno mode); the mock
checks its simulated modes unconditionally.
path
stringmode
numberreturns
void throws
Error- naming the path, the offending mode, and the `chmod` fix