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(), })); }