summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/issue9750.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-09-09 08:38:47 -0400
committerGitHub <noreply@github.com>2021-09-09 08:38:47 -0400
commitfb35cd0ef496fee9aa65daadf542057f18d6063f (patch)
tree68724c25f890567751a5545238912f2624670c50 /cli/tests/testdata/issue9750.js
parentd9476292929a680e364db403d6fc69cfb893599f (diff)
fix: permission prompt stuffing (#11931)
Fixes #9750
Diffstat (limited to 'cli/tests/testdata/issue9750.js')
-rw-r--r--cli/tests/testdata/issue9750.js6
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"));