summaryrefslogtreecommitdiff
path: root/js/os.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/os.ts')
-rw-r--r--js/os.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/os.ts b/js/os.ts
index e7d588a52..551cb1ea6 100644
--- a/js/os.ts
+++ b/js/os.ts
@@ -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();