mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
5cf97f539b
Remove `--allow-hrtime` and `--deny-hrtime`. We are doing this because it is already possible to get access to high resolution timers through workers and SharedArrayBuffer. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
21 lines
1.4 KiB
JavaScript
21 lines
1.4 KiB
JavaScript
console.log(Deno.permissions.querySync({ name: "env" }));
|
|
console.log(Deno.permissions.querySync({ name: "env", variable: "FOO" }));
|
|
console.log(Deno.permissions.querySync({ name: "env", variable: "BAR" }));
|
|
console.log(Deno.permissions.querySync({ name: "read" }));
|
|
console.log(Deno.permissions.querySync({ name: "read", path: "/foo" }));
|
|
console.log(Deno.permissions.querySync({ name: "read", path: "/bar" }));
|
|
console.log(Deno.permissions.querySync({ name: "write" }));
|
|
console.log(Deno.permissions.querySync({ name: "write", path: "/foo" }));
|
|
console.log(Deno.permissions.querySync({ name: "write", path: "/bar" }));
|
|
console.log(Deno.permissions.querySync({ name: "ffi" }));
|
|
console.log(Deno.permissions.querySync({ name: "ffi", path: "/foo" }));
|
|
console.log(Deno.permissions.querySync({ name: "ffi", path: "/bar" }));
|
|
console.log(Deno.permissions.querySync({ name: "run" }));
|
|
console.log(Deno.permissions.querySync({ name: "run", command: "foo" }));
|
|
console.log(Deno.permissions.querySync({ name: "run", command: "bar" }));
|
|
console.log(Deno.permissions.querySync({ name: "sys" }));
|
|
console.log(Deno.permissions.querySync({ name: "sys", kind: "hostname" }));
|
|
console.log(Deno.permissions.querySync({ name: "sys", kind: "loadavg" }));
|
|
console.log(Deno.permissions.querySync({ name: "net" }));
|
|
console.log(Deno.permissions.querySync({ name: "net", host: "127.0.0.1" }));
|
|
console.log(Deno.permissions.querySync({ name: "net", host: "192.168.0.1" }));
|