From cbdc534862aed6c6680d4124fd42eb1db3a2f9bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Tue, 15 Aug 2017 11:18:05 +0200 Subject: [PATCH] Making sure the process is checked before accessed --- tests/shared/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shared/js/index.js b/tests/shared/js/index.js index fcecb063..28c9acbb 100644 --- a/tests/shared/js/index.js +++ b/tests/shared/js/index.js @@ -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 {