Sha256: 1fdb417fb35afd145146092080347e87068478b16d3327dba0a6e127487ded4d

Contents?: true

Size: 770 Bytes

Versions: 5

Compression:

Stored size: 770 Bytes

Contents

(function(program, execJS) { execJS(program) })(function(console, setTimeout, setInterval, clearTimeout, clearInterval, setImmediate, clearImmediate) { #{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

5 entries across 5 versions & 3 rubygems

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