src/eval.js
function _parseConfig(config) {
  const _config = Object.assign({}, {
    filename:module.parent.filename,
    scope: settings.get('scope') || {},
    includeGlobals:false,
    proxyGlobal:true,
    useSandbox: settings.get('useSandbox') || false,
    workspace: [workspaces.DEFAULT_WORKSPACE],
    squashErrors: !!(config.resolver || {}).squashErrors
  }, config);

  if (isBuffer(_config.content)) _config.content = _config.content.toString();

  return _config;
}
function _parseConfig(config) {
  const _config = Object.assign({}, {
    filename:module.parent.filename,
    scope: settings.get('scope') || {},
    includeGlobals:false,
    proxyGlobal:true,
    useSandbox: settings.get('useSandbox') || false,
    workspace: [workspaces.DEFAULT_WORKSPACE],
    squashErrors: !!(config.resolver || {}).squashErrors
  }, config);

  if (isBuffer(_config.content)) _config.content = _config.content.toString();

  return _config;
}
function _parseConfig ( config ) { const _config = Object . assign ( { } , { filename : module . parent . filename , scope : settings . get ( 'scope' ) || { } , includeGlobals : false , proxyGlobal : true , useSandbox : settings . get ( 'useSandbox' ) || false , workspace : [ workspaces . DEFAULT_WORKSPACE ] , squashErrors : ! ! ( config . resolver || { } ) . squashErrors } , config ) ; if ( isBuffer ( _config . content ) ) _config . content = _config . content . toString ( ) ; return _config ; }
Parse a config, adding defaults.

@private
@param {Object} config       Config to parse.
@returns {Object}            Parsed config.
Parse a config adding defaults .