mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20: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>
22 lines
301 B
TypeScript
22 lines
301 B
TypeScript
import { unreachable } from "@std/assert";
|
|
|
|
const permissions: Deno.PermissionName[] = [
|
|
"read",
|
|
"write",
|
|
"net",
|
|
"env",
|
|
"run",
|
|
"ffi",
|
|
];
|
|
|
|
for (const name of permissions) {
|
|
Deno.test({
|
|
name,
|
|
permissions: {
|
|
[name]: true,
|
|
},
|
|
fn() {
|
|
unreachable();
|
|
},
|
|
});
|
|
}
|