mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-10 22:36:01 +00:00
Making sure the process is checked before accessed
This commit is contained in:
parent
56779d4ffa
commit
cbdc534862
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user