mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
fix(test): don't swallow sanitizer errors with permissions (#18550)
Missing `return` from #18246.
This commit is contained in:
parent
0210c1cadf
commit
e5588d2f1e
3 changed files with 9 additions and 4 deletions
|
@ -481,7 +481,7 @@ function withPermissions(fn, permissions) {
|
|||
const token = pledgePermissions(permissions);
|
||||
|
||||
try {
|
||||
await fn(...new SafeArrayIterator(params));
|
||||
return await fn(...new SafeArrayIterator(params));
|
||||
} finally {
|
||||
restorePermissions(token);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue