mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 06:46:03 +00:00
Checking for process before checking the process.versions.electron
This commit is contained in:
parent
bd4dbd7f6a
commit
b37fc3f2b0
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user