MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / safe_script

Function safe_script

pdflinux.js:27–29  ·  view source on GitHub ↗
(js)

Source from the content-addressed store, hash-verified

25}
26
27function safe_script(js) {
28 return `try {${js}} catch (e) {app.alert(e.stack || e)}`;
29}
30
31function set_timeout(callback, timeout) {
32 let id = Math.random()+"";

Callers 2

set_timeoutFunction · 0.85
set_intervalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected