MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / resetSandbox

Function resetSandbox

src/client/ejs.mjs:310–315  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

308 }
309
310 function resetSandbox(name) {
311 if (!sandboxes.hasOwnProperty(name)) return
312 let frame = sandboxes[name].frame
313 frame.parentNode.removeChild(frame)
314 delete sandboxes[name]
315 }
316
317 function placeFrame(frame, snippet) {
318 let wrap = snippet.previousSibling, bot

Callers 2

runFunction · 0.85
showEditorControlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected