Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/scriptscat/scriptcat
/ withCleanup
Function
withCleanup
example/tests/sandbox_test.js:124–130 ·
view source on GitHub ↗
(fn, cleanup)
Source
from the content-addressed store, hash-verified
122
}
123
124
async
function
withCleanup(fn, cleanup) {
125
try {
126
return
await
fn();
127
} finally {
128
cleanup();
129
}
130
}
131
132
function
snapshotPageProps(keys) {
133
const
snapshots = Object.create(null);
Callers
1
sandbox_test.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected