lib/factory.js
function tryCatch1 (fn, arg1) {
  var errorObject = {};
  try {
    errorObject.value = fn(arg1);
  }
  catch (e) {
    errorObject.error = e;
  }
  return errorObject;
}
function tryCatch1 (fn, arg1) {
  var errorObject = {};
  try {
    errorObject.value = fn(arg1);
  }
  catch (e) {
    errorObject.error = e;
  }
  return errorObject;
}
function tryCatch1 ( fn , arg1 ) { var errorObject = { } ; try { errorObject . value = fn ( arg1 ) ; } catch ( e ) { errorObject . error = e ; } return errorObject ; }
try..catch causes deoptimisation in V8 and most other JS engines. Using a specialist function minimises the impact.
try .. catch causes deoptimisation in V8 and most other JS engines . Using a specialist function minimises the impact .