Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
lib
/
ruby
/
vendor_ruby
/
execjs
/
support
📤 Upload
📝 New File
📁 New Folder
Close
Editing: jscript_runner.js
(function(program, execJS) { execJS(program) })(function() { return eval(#{encode_source(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(JSON.stringify(['err', err.name + ': ' + err.message, err.stack])); } } } catch (err) { print(JSON.stringify(['err', err.name + ': ' + err.message, err.stack])); } });
Save
Cancel