summaryrefslogtreecommitdiff
path: root/tests/specs/test/doc_permission_respected/main.ts
blob: fdc7743a86a44a8f2b5a6b645796771f5774c450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * This should succeed because we pass `--allow-env=PATH`
 * ```ts
 * const _path = Deno.env.get("PATH");
 * ```
 *
 * This should fail because we don't allow for env access to `USER`
 * ```ts
 * const _user = Deno.env.get("USER");
 * ```
 * @module doc
 */