diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-09-09 08:38:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-09 08:38:47 -0400 |
commit | fb35cd0ef496fee9aa65daadf542057f18d6063f (patch) | |
tree | 68724c25f890567751a5545238912f2624670c50 /cli/tests/testdata/issue9750.js | |
parent | d9476292929a680e364db403d6fc69cfb893599f (diff) |
fix: permission prompt stuffing (#11931)
Fixes #9750
Diffstat (limited to 'cli/tests/testdata/issue9750.js')
-rw-r--r-- | cli/tests/testdata/issue9750.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/testdata/issue9750.js b/cli/tests/testdata/issue9750.js new file mode 100644 index 000000000..89fd61629 --- /dev/null +++ b/cli/tests/testdata/issue9750.js @@ -0,0 +1,6 @@ +// Run without permissions. +const buf = new Uint8Array(1); +console.log("Enter 'yy':"); +await Deno.stdin.read(buf); +await Deno.permissions.request({ "name": "env" }); +console.log("\n\nOwned", Deno.env.get("SECRET")); |