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

Method sandbox_run

src/client/sandbox.mjs:85–87  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

83 // Should be above all user-run code, so that the stack trace can be
84 // cut off at this point.
85 sandbox_run(code) {
86 return code instanceof Function ? code() : this.win.eval(code)
87 }
88
89 prepare(text) {
90 let {code, dependencies} = preprocess(text, this)

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected