electron/spec/fixtures/module/no-asar.js
Milan Burda d78f37ec8f
refactor: use node scheme imports in spec (#38487)
Co-authored-by: Milan Burda <miburda@microsoft.com>
2023-06-15 10:42:27 -04:00

15 lines
317 B
JavaScript

const fs = require('node:fs');
const path = require('node:path');
const stats = fs.statSync(path.join(__dirname, '..', 'test.asar', 'a.asar'));
const details = {
isFile: stats.isFile(),
size: stats.size
};
if (process.send != null) {
process.send(details);
} else {
console.log(JSON.stringify(details));
}