mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test,benchmark: use tmpdir.fileURL()
PR-URL: https://github.com/nodejs/node/pull/49138 Refs: https://github.com/nodejs/node/pull/49040 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
e391f4b197
commit
fac56dbcc0
4 files changed
+3
-16
No files matched your search
@@ -23,11 +23,6 @@ const policyFilepath = tmpdir.resolve('policy');
|
||||
const depFilepath = require.resolve(`./build/${common.buildType}/binding.node`);
|
||||
const depURL = pathToFileURL(depFilepath);
|
||||
|
||||
const tmpdirURL = pathToFileURL(tmpdir.path);
|
||||
if (!tmpdirURL.pathname.endsWith('/')) {
|
||||
tmpdirURL.pathname += '/';
|
||||
}
|
||||
|
||||
const depBody = fs.readFileSync(depURL);
|
||||
function writePolicy(...resources) {
|
||||
const manifest = { resources: {} };
|
||||
|
||||
Reference in new issue
Block a user