From fb35cd0ef496fee9aa65daadf542057f18d6063f Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 9 Sep 2021 08:38:47 -0400 Subject: fix: permission prompt stuffing (#11931) Fixes #9750 --- cli/tests/testdata/issue9750.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cli/tests/testdata/issue9750.js (limited to 'cli/tests/testdata/issue9750.js') 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")); -- cgit v1.2.3