Sha256: 86bf07233820ac3b8f5a906f3de051f9785b5218f9b0a9dd2b360b187ed4b32a

Contents?: true

Size: 525 Bytes

Versions: 12

Compression:

Stored size: 525 Bytes

Contents

(function(program, execJS) { execJS(program) })(function() { #{source}
}, function(program) {
  #{json2_source}
  var output, print = function(string) {
    WScript.Echo(string);
  };
  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.name + ': ' + err.message]));
  }
});

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
execjs-1.2.5 lib/execjs/support/jscript_runner.js
execjs-1.2.4 lib/execjs/support/jscript_runner.js
execjs-1.2.3 lib/execjs/support/jscript_runner.js
execjs-1.2.2 lib/execjs/support/jscript_runner.js
execjs-1.2.1 lib/execjs/support/jscript_runner.js
execjs-1.2.0 lib/execjs/support/jscript_runner.js
execjs-1.1.3 lib/execjs/support/jscript_runner.js
execjs-1.1.2 lib/execjs/support/jscript_runner.js
execjs-1.1.1 lib/execjs/support/jscript_runner.js
execjs-1.1.0 lib/execjs/support/jscript_runner.js
execjs-1.0.0 lib/execjs/support/jscript_runner.js
execjs-0.4.0 lib/execjs/support/jscript_runner.js