Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
27
function
safe_script(js) {
28
return
`try {${js}} catch (e) {app.alert(e.stack || e)}`;
29
}
30
31
function
set_timeout(callback, timeout) {
32
let
id = Math.random()+
""
;
Callers
2
set_timeout
Function · 0.85
set_interval
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected