mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
fb35cd0ef4
Fixes #9750
6 lines
216 B
JavaScript
6 lines
216 B
JavaScript
// 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"));
|