mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
9c5928b5aa
This commit fixes and edge case, where testing/benching code could pledge new permission set before restoring the previous pledge. Appropriate panics were added and tests that assert that process is killed in case of "recursive pledge".
8 lines
129 B
JavaScript
8 lines
129 B
JavaScript
Deno.core.opSync(
|
|
"op_pledge_test_permissions",
|
|
"none",
|
|
);
|
|
Deno.core.opSync(
|
|
"op_pledge_test_permissions",
|
|
"inherit",
|
|
);
|