mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59:10 +00:00
feat(runtime): stabilise permissions and add event target capabilities (#9573)
This commit is contained in:
parent
90e4c5dcde
commit
097e9c44f4
17 changed files with 333 additions and 176 deletions
|
@ -1,6 +1,9 @@
|
|||
const status1 = await Deno.permissions.request({ name: "read", path: "foo" });
|
||||
const status2 = await Deno.permissions.query({ name: "read", path: "bar" });
|
||||
const status3 = await Deno.permissions.request({ name: "read", path: "bar" });
|
||||
const status1 =
|
||||
(await Deno.permissions.request({ name: "read", path: "foo" })).state;
|
||||
const status2 =
|
||||
(await Deno.permissions.query({ name: "read", path: "bar" })).state;
|
||||
const status3 =
|
||||
(await Deno.permissions.request({ name: "read", path: "bar" })).state;
|
||||
console.log(status1);
|
||||
console.log(status2);
|
||||
console.log(status3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue