diff --git a/agents/meshcore.js b/agents/meshcore.js index e14a268e..d811af12 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -53,8 +53,15 @@ if (require('MeshAgent').ARCHID == null) id = require('_GenericMarshal').PointerSize == 4 ? 31 : 30; break; case 'darwin': - id = require('os').arch() == 'x64' ? 16 : 29; - break; + try + { + id = require('os').arch() == 'x64' ? 16 : 29; + } + catch (xx) + { + id = 16; + } + break; break; } if (id != null) { Object.defineProperty(require('MeshAgent'), 'ARCHID', { value: id }); } } diff --git a/agents/recoverycore.js b/agents/recoverycore.js index 74a999d4..20e367be 100644 --- a/agents/recoverycore.js +++ b/agents/recoverycore.js @@ -18,7 +18,14 @@ if (require('MeshAgent').ARCHID == null) id = require('_GenericMarshal').PointerSize == 4 ? 31 : 30; break; case 'darwin': - id = require('os').arch() == 'x64' ? 16 : 29; + try + { + id = require('os').arch() == 'x64' ? 16 : 29; + } + catch(xx) + { + id = 16; + } break; } if (id != null) { Object.defineProperty(require('MeshAgent'), 'ARCHID', { value: id }); }