mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -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>
20 lines
275 B
TypeScript
20 lines
275 B
TypeScript
const permissions: Deno.PermissionName[] = [
|
|
"read",
|
|
"write",
|
|
"net",
|
|
"env",
|
|
"run",
|
|
"ffi",
|
|
];
|
|
|
|
for (const name of permissions) {
|
|
Deno.bench({
|
|
name,
|
|
permissions: {
|
|
[name]: true,
|
|
},
|
|
fn() {
|
|
throw new Error("unreachable");
|
|
},
|
|
});
|
|
}
|