diff options
author | Nayeem Rahman <muhammed.9939@gmail.com> | 2019-08-06 06:45:36 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-08-06 01:45:36 -0400 |
commit | 11c850af423f07769f054c494a76cbd9efb8806c (patch) | |
tree | 2a0a784333e052b3625d67514871cf2c4dbd3752 /js/os.ts | |
parent | 046cccfe1768837fcd5b4c1fd7d52fb2d98c0b11 (diff) |
Enforce permissions on kill(), homeDir() and execPath (#2723)
Diffstat (limited to 'js/os.ts')
-rw-r--r-- | js/os.ts | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -13,7 +13,9 @@ export let pid: number; /** Reflects the NO_COLOR environment variable: https://no-color.org/ */ export let noColor: boolean; -/** Path to the current deno process's executable file. */ +/** Path to the current deno process's executable file. + * Requires the `--allow-env` flag, otherwise it'll be set to an empty `string`. + */ export let execPath: string; function setGlobals(pid_: number, noColor_: boolean, execPath_: string): void { @@ -145,7 +147,7 @@ export function start( /** * Returns the current user's home directory. - * Does not require elevated privileges. + * Requires the `--allow-env` flag. */ export function homeDir(): string { const builder = flatbuffers.createBuilder(); |