From 96d00cd477259f819057b77d01446cd05305c21f Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Wed, 31 Jul 2024 20:05:59 -0300 Subject: [PATCH] fixup! fixup! lib,permission: support Buffer to permission.has --- test/fixtures/permission/fs-traversal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fixtures/permission/fs-traversal.js b/test/fixtures/permission/fs-traversal.js index e84b1ad4507a22..764ae6692522da 100644 --- a/test/fixtures/permission/fs-traversal.js +++ b/test/fixtures/permission/fs-traversal.js @@ -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(), })); }