Making sure the process is checked before accessed

This commit is contained in:
Kræn Hansen 2017-08-15 11:18:05 +02:00
parent 56779d4ffa
commit cbdc534862
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ if (Realm.Sync) {
function node_require(module) { return require(module); }
// If on node and an expected version: Run the async tests
const isNodeProcess = process.versions && process.versions.node === '6.5.0';
const isNodeProcess = typeof(process) === "object" && process.versions && process.versions.node === '6.5.0';
if (isNodeProcess) {
TESTS.AsyncTests = node_require('./async-tests');
} else {