MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / stashError

Function stashError

runtime/src/env.js:100–106  ·  view source on GitHub ↗
(exports, message)

Source from the content-addressed store, hash-verified

98}
99
100function stashError(exports, message) {
101 const bytes = TE.encode(message);
102 const ptr = exports.wasm_alloc(bytes.length);
103 new Uint8Array(exports.memory.buffer, ptr, bytes.length).set(bytes);
104 exports.host_edge_throw(ERR_RUNTIME, ptr, bytes.length);
105 exports.wasm_free(ptr, bytes.length);
106}

Callers 1

makeCompilerEnvFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected