MCPcopy
hub / github.com/copy/v86 / get_import

Function get_import

src/cpu.js:216–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214 const get_optional_import = name => this.wm.exports[name];
215
216 const get_import = name =>
217 {
218 const f = get_optional_import(name);
219 console.assert(f, "Missing import: " + name);
220 return f;
221 };
222
223 this.reset_cpu = get_import("reset_cpu");
224

Callers 1

cpu.jsFile · 0.85

Calls 1

get_optional_importFunction · 0.85

Tested by

no test coverage detected