"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "spec-main/index.js" between
electron-11.0.1.tar.gz and electron-11.0.2.tar.gz

About: Electron is a framework for creating native cross platform applications with web technologies like JavaScript, HTML, and CSS.

index.js  (electron-11.0.1):index.js  (electron-11.0.2)
const Module = require('module'); const Module = require('module');
const path = require('path'); const path = require('path');
const v8 = require('v8'); const v8 = require('v8');
Module.globalPaths.push(path.resolve(__dirname, '../spec/node_modules')); Module.globalPaths.push(path.resolve(__dirname, '../spec/node_modules'));
// Extra module paths which can be used to load Mocha reporters
if (process.env.ELECTRON_TEST_EXTRA_MODULE_PATHS) {
for (const modulePath of process.env.ELECTRON_TEST_EXTRA_MODULE_PATHS.split(':
')) {
Module.globalPaths.push(modulePath);
}
}
// We want to terminate on errors, not throw up a dialog // We want to terminate on errors, not throw up a dialog
process.on('uncaughtException', (err) => { process.on('uncaughtException', (err) => {
console.error('Unhandled exception in main spec runner:', err); console.error('Unhandled exception in main spec runner:', err);
process.exit(1); process.exit(1);
}); });
// Tell ts-node which tsconfig to use // Tell ts-node which tsconfig to use
process.env.TS_NODE_PROJECT = path.resolve(__dirname, '../tsconfig.spec.json'); process.env.TS_NODE_PROJECT = path.resolve(__dirname, '../tsconfig.spec.json');
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = 'true'; process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = 'true';
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)