src/evaluator/shell.js
function createGlobals(shell) {
  var globals = {
    Buffer: Buffer,
    console: console,
    clearImmediate: clearImmediate,
    clearInterval: clearInterval,
    clearTimeout: clearTimeout,
    setImmediate: setImmediate,
    setInterval: setInterval,
    setTimeout: setTimeout,
    _: ijsrt
  };

  globals.global = globals;

  return globals;
}
function createGlobals(shell) {
  var globals = {
    Buffer: Buffer,
    console: console,
    clearImmediate: clearImmediate,
    clearInterval: clearInterval,
    clearTimeout: clearTimeout,
    setImmediate: setImmediate,
    setInterval: setInterval,
    setTimeout: setTimeout,
    _: ijsrt
  };

  globals.global = globals;

  return globals;
}
function createGlobals ( shell ) { var globals = { Buffer : Buffer , console : console , clearImmediate : clearImmediate , clearInterval : clearInterval , clearTimeout : clearTimeout , setImmediate : setImmediate , setInterval : setInterval , setTimeout : setTimeout , _ : ijsrt } ; globals . global = globals ; return globals ; }
Creates the global objects variables that serves as the initial state managed by the shell.
Creates the global objects variables that serves as the initial state managed by the shell .