MCPcopy Create free account
hub / github.com/nodejs/node / writeIndexFile

Function writeIndexFile

deps/v8/tools/clusterfuzz/js_fuzzer/db.js:278–281  ·  view source on GitHub ↗
(path, index)

Source from the content-addressed store, hash-verified

276}
277
278function writeIndexFile(path, index) {
279 index.sort((a, b) => a.path.localeCompare(b.path));
280 fs.writeFileSync(path, JSON.stringify(index, null, 2));
281}
282
283class MutateDbWriter {
284 constructor(outputDir) {

Callers 1

writeIndexMethod · 0.85

Calls 2

sortMethod · 0.80
writeFileSyncMethod · 0.45

Tested by

no test coverage detected