Sha256: 611fdaf3347f311ced2f4b0f35bd42b0ab9988c621d521490621b4c6af857afd
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 Bytes
Contents
(function(program, execJS) { execJS(program) })(function() { return eval(#{encode_source(source)}); }, function(program) { var output; 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
execjs-2.2.2 | lib/execjs/support/jsc_runner.js |
execjs-2.2.1 | lib/execjs/support/jsc_runner.js |
execjs-2.2.0 | lib/execjs/support/jsc_runner.js |