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
1 changed files with 1 additions and 1 deletions

View File

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