Checking for process before checking the process.versions.electron

This commit is contained in:
Kræn Hansen 2017-08-14 14:38:19 +02:00
parent bd4dbd7f6a
commit b37fc3f2b0

View File

@ -51,7 +51,7 @@ if (isNodeProcess) {
console.log("Skipping the AsyncTests"); console.log("Skipping the AsyncTests");
} }
const isElectronProcess = !!process.versions.electron; const isElectronProcess = process && process.versions && !!process.versions.electron;
if (isElectronProcess) { if (isElectronProcess) {
TESTS.GarbageCollectionTests = require('./garbage-collection'); TESTS.GarbageCollectionTests = require('./garbage-collection');
} else { } else {