8f0eac2be98cf8615a768e7c638b822181aaa4b70ce38dd28b9bc92e8f6a13850a35835b5112e1a6282d369e148581dbb55fde163de92e9c4694bee64664f5 303 B

123456789101112
  1. 'use strict'
  2. /**
  3. * Tries to execute a function and discards any error that occurs.
  4. * @param {Function} fn - Function that might or might not throw an error.
  5. * @returns {?*} Return-value of the function when no error occurred.
  6. */
  7. module.exports = function(fn) {
  8. try { return fn() } catch (e) {}
  9. }