fix(test): don't swallow sanitizer errors with permissions (#18550)

Missing `return` from #18246.
This commit is contained in:
Nayeem Rahman 2023-04-01 21:20:16 +01:00 committed by GitHub
parent 0210c1cadf
commit e5588d2f1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View file

@ -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);
}