What about having something like that, instead?
```js
const [, architecture, compiler] = runtime.XPCOMABI ? runtime.XPCOMABI.match(/^(.*?)-(.*)$/) : [, null, null];
```

And then:
```js
exports.architecture = architecture;
exports.compiler = compiler;
```
It doesn't need to be exactly that regexp, just to give a suggestion.