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

Method prepare

src/client/sandbox.mjs:89–93  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

87 }
88
89 prepare(text) {
90 let {code, dependencies} = preprocess(text, this)
91 return (this.handleDeps ? Promise.all(dependencies.map(dep => this.loaded.compute(dep))) : Promise.resolve([]))
92 .then(() => code)
93 }
94
95 evalModule(name, code) {
96 if (/\.json$/.test(name))

Callers 1

runMethod · 0.95

Calls 2

preprocessFunction · 0.85
computeMethod · 0.80

Tested by

no test coverage detected