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.7.5 vendor/bundle/gems/execjs-1.3.2/lib/execjs/support/jscript_runner.js
classiccms-0.7.5 vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js
classiccms-0.7.5 vendor/bundle/gems/execjs-1.3.0/lib/execjs/support/jscript_runner.js
classiccms-0.7.4 vendor/bundle/gems/execjs-1.3.0/lib/execjs/support/jscript_runner.js
classiccms-0.7.4 vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js
classiccms-0.7.4 vendor/bundle/gems/execjs-1.3.2/lib/execjs/support/jscript_runner.js
classiccms-0.7.3 vendor/bundle/gems/execjs-1.3.0/lib/execjs/support/jscript_runner.js
classiccms-0.7.3 vendor/bundle/gems/execjs-1.3.2/lib/execjs/support/jscript_runner.js
classiccms-0.7.3 vendor/bundle/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/execjs-1.4.0/lib/execjs/support/jscript_runner.js
execjs-1.4.1 lib/execjs/support/jscript_runner.js
execjs-2.1.0 lib/execjs/support/jscript_runner.js
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/execjs-2.0.2/lib/execjs/support/jscript_runner.js
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/support/jscript_runner.js
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/support/jscript_runner.js
execjs-2.0.2 lib/execjs/support/jscript_runner.js
execjs-2.0.1 lib/execjs/support/jscript_runner.js
execjs-2.0.0 lib/execjs/support/jscript_runner.js
classiccms-0.7.2 vendor/bundle/gems/execjs-1.3.0/lib/execjs/support/jscript_runner.js
classiccms-0.7.2 vendor/bundle/gems/execjs-1.3.2/lib/execjs/support/jscript_runner.js