Sha256: ebb65fa7158b7a9de1ddfb6d75db8f14dcd812506e1a1e5ceeb7d57f822ca648

Contents?: true

Size: 428 Bytes

Versions: 7

Compression:

Stored size: 428 Bytes

Contents

(function(program, execJS) { execJS(program) })(function() { #{source}
}, function(program) {
  var output;
  try {
    result = program();
    if (typeof result == 'undefined' && result !== null) {
      print('["ok"]');
    } else {
      try {
        print(JSON.stringify(['ok', result]));
      } catch (err) {
        print('["err"]');
      }
    }
  } catch (err) {
    print(JSON.stringify(['err', '' + err]));
  }
});

Version data entries

7 entries across 6 versions & 1 rubygems

Version Path
execjs-2.3.0 lib/execjs/support/spidermonkey_runner.js
execjs-2.3.0 lib/execjs/support/jsc_runner.js
execjs-0.3.0 lib/execjs/support/basic_runner.js
execjs-0.2.1 lib/execjs/support/basic_runner.js
execjs-0.2.0 lib/execjs/support/basic_runner.js
execjs-0.1.1 lib/execjs/support/basic_runner.js
execjs-0.1.0 lib/execjs/support/basic_runner.js