Sha256: 88e9a17634a347c2f9812c9eb8067f2bb31ddf6f2da6dda4562a616c949a376f

Contents?: true

Size: 680 Bytes

Versions: 7

Compression:

Stored size: 680 Bytes

Contents

(function(program, execJS) { execJS(program) })(function() { #{source}
}, function(program) {
  var output;
  try {
    delete this.console;
    delete this.setTimeout;
    delete this.setInterval;
    delete this.clearTimeout;
    delete this.clearInterval;
    delete this.setImmediate;
    delete this.clearImmediate;

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

Version data entries

7 entries across 6 versions & 4 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/execjs-2.10.0/lib/execjs/support/jsc_runner.js
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/execjs-2.10.0/lib/execjs/support/jsc_runner.js
execjs-2.10.0 lib/execjs/support/jsc_runner.js
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/execjs-2.9.1/lib/execjs/support/jsc_runner.js
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/execjs-2.9.1/lib/execjs/support/jsc_runner.js
execjs-2.9.1 lib/execjs/support/jsc_runner.js
execjs-2.9.0 lib/execjs/support/jsc_runner.js