UNPKG

hakojs

Version:

A secure, embeddable JavaScript engine that runs untrusted code inside WebAssembly sandboxes with fine-grained permissions and resource limits

27 lines (24 loc) 608 B
// src/host/container.ts import { ErrorManager } from "../etc/errors"; import { Utils } from "../etc/utils"; class Container { exports; memory; error; utils; callbacks; constructor(exports, memory, callbacks) { this.exports = exports; this.memory = memory; this.callbacks = callbacks; this.memory.setExports(exports); this.callbacks.setExports(exports); this.error = new ErrorManager(exports, this.memory); this.utils = new Utils(exports, this.memory); } } export { Container }; //# debugId=EC83F0E6035FD90464756E2164756E21 //# sourceMappingURL=container.js.map