Skip to content

Commit

Permalink
fixup! fixup! lib,permission: support Buffer to permission.has
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Jul 31, 2024
1 parent c95589f commit 96d00cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/fixtures/permission/fs-traversal.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const uint8ArrayTraversalPath = new TextEncoder().encode(traversalPath);
permission: 'FileSystemRead',
// lstat checks and throw on JS side.
// resource is only resolved on C++ (is_granted)
resource: Buffer.toString(bufferTraversalPath),
resource: bufferTraversalPath.toString(),
}));
}

Expand Down

0 comments on commit 96d00cd

Please sign in to comment.