mirror of
https://github.com/denoland/deno.git
synced 2024-12-26 17:19:06 -05: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",
|
|
);
|