packages/tyranid/src/express.js
function es5Fn(fn) {
  let s = fn.toString();

  //const name = fn.name;

  //if (s.startsWith('function (')) {
  //s = 'function ' + (name || '_fn' + nextFnName++) + ' (' + s.substring(10);
  /*} else */
  if (!s.startsWith('function')) {
    s = 'function ' + s;
  }

  return s;
}
function es5Fn(fn) {
  let s = fn.toString();

  //const name = fn.name;

  //if (s.startsWith('function (')) {
  //s = 'function ' + (name || '_fn' + nextFnName++) + ' (' + s.substring(10);
  /*} else */
  if (!s.startsWith('function')) {
    s = 'function ' + s;
  }

  return s;
}
function es5Fn ( fn ) { let s = fn . toString ( ) ; //const name = fn.name; //if (s.startsWith('function (')) { //s = 'function ' + (name || '_fn' + nextFnName++) + ' (' + s.substring(10); /*} else */ if ( ! s . startsWith ( 'function' ) ) { s = 'function ' + s ; } return s ; }
let nextFnName = 1;
let nextFnName = 1 ;