Sha256: 49126db0a3990c0b01f13705071e75d8ae44f4e6918e330bca1eb92efb34d648

Contents?: true

Size: 549 Bytes

Versions: 177

Compression:

Stored size: 549 Bytes

Contents

(function(program, execJS) { execJS(program) })(function() {
  return eval(#{encoded_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

177 entries across 86 versions & 7 rubygems

Version Path
classiccms-0.6.8 vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.7 vendor/bundle/gems/execjs-1.3.2/lib/execjs/support/jscript_runner.js
classiccms-0.6.7 vendor/bundle/gems/execjs-1.3.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.7 vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.6 vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.6 vendor/bundle/gems/execjs-1.3.2/lib/execjs/support/jscript_runner.js
classiccms-0.6.6 vendor/bundle/gems/execjs-1.3.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.5 vendor/bundle/gems/execjs-1.3.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.5 vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.5 vendor/bundle/gems/execjs-1.3.2/lib/execjs/support/jscript_runner.js
classiccms-0.6.4 vendor/bundle/gems/execjs-1.3.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.4 vendor/bundle/gems/execjs-1.3.2/lib/execjs/support/jscript_runner.js
classiccms-0.6.4 vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.3 vendor/bundle/gems/execjs-1.3.2/lib/execjs/support/jscript_runner.js
classiccms-0.6.3 vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.3 vendor/bundle/gems/execjs-1.3.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.2 vendor/bundle/gems/execjs-1.3.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.2 vendor/bundle/gems/execjs-1.3.2/lib/execjs/support/jscript_runner.js
classiccms-0.6.2 vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js
classiccms-0.6.1 vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js