feat(runtime): stabilise permissions and add event target capabilities (#9573)

This commit is contained in:
Kitson Kelly 2021-02-25 14:33:09 +11:00 committed by GitHub
parent 90e4c5dcde
commit 097e9c44f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 333 additions and 176 deletions

View file

@ -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);