src/eval.js
function wrap(content, scope) {
  const scopeParams = Object.keys(scope).join(',');
  const comma = ((scopeParams !== '')?', ':'');
  return `(function (exports, require, module, __filename, __dirname${comma}${scopeParams}) {
    ${content}
  });`
}
function wrap(content, scope) {
  const scopeParams = Object.keys(scope).join(',');
  const comma = ((scopeParams !== '')?', ':'');
  return `(function (exports, require, module, __filename, __dirname${comma}${scopeParams}) {
    ${content}
  });`
}
function wrap ( content , scope ) { const scopeParams = Object . keys ( scope ) . join ( ',' ) ; const comma = ( ( scopeParams !== '' ) ? ', ' : '' ) ; return ` ${ comma } ${ scopeParams } ${ content } ` }
Wrap the script content with scape parameters, including optional extra ones.

@param {string} content      Content to wrap.
@param {Object} scope        Scope parameters to add.
@returns {string}            Wrapped script content.
Wrap the script content with scape parameters including optional extra ones .