Sha256: bf54affd3b28d9a98ca7f2ee9a193550bed1e26302b6a2755b636b9e8e9bbd87

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

(function(program, execJS) { execJS(program) })(function(global, process, module, exports, require, console, setTimeout, setInterval, clearTimeout, clearInterval, setImmediate, clearImmediate) { #{source}
}, function(program) {
  var output, print = function(string) {
    process.stdout.write('' + string);
  };
  try {
    var __process__ = process;
    delete this.process;
    delete this.console;
    delete this.setTimeout;
    delete this.setInterval;
    delete this.clearTimeout;
    delete this.clearInterval;
    delete this.setImmediate;
    delete this.clearImmediate;
    result = program();
    this.process = __process__;
    if (typeof result == 'undefined' && result !== null) {
      print('["ok"]');
    } else {
      try {
        print(JSON.stringify(['ok', result]));
      } catch (err) {
        print(JSON.stringify(['err', '' + err, err.stack]));
      }
    }
  } catch (err) {
    this.process = __process__;
    print(JSON.stringify(['err', '' + err, err.stack]));
  }
  __process__.exit(0);
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
execjs-2.8.0 lib/execjs/support/node_runner.js