Sha256: 0714dbf75514060face72a40c8901d5f1b279948b483dbbefb9b90a392f2601b

Contents?: true

Size: 504 Bytes

Versions: 9

Compression:

Stored size: 504 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]));
  }
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
execjs-0.3.4 lib/execjs/support/jscript_runner.js
execjs-0.3.3 lib/execjs/support/jscript_runner.js
execjs-0.3.2 lib/execjs/support/jscript_runner.js
execjs-0.3.1 lib/execjs/support/jscript_runner.js
execjs-0.3.0 lib/execjs/support/jscript_runner.js
execjs-0.2.1 lib/execjs/support/jscript_runner.js
execjs-0.2.0 lib/execjs/support/jscript_runner.js
execjs-0.1.1 lib/execjs/support/jscript_runner.js
execjs-0.1.0 lib/execjs/support/jscript_runner.js