MCPcopy Create free account
hub / github.com/neplextech/vectorizer / overwriteImports

Function overwriteImports

vectorizer.wasi.cjs:95–103  ·  view source on GitHub ↗
(importObject)

Source from the content-addressed store, hash-verified

93 return worker;
94 },
95 overwriteImports(importObject) {
96 importObject.env = {
97 ...importObject.env,
98 ...importObject.napi,
99 ...importObject.emnapi,
100 memory: __sharedMemory,
101 };
102 return importObject;
103 },
104 beforeInit({ instance }) {
105 for (const name of Object.keys(instance.exports)) {
106 if (name.startsWith('__napi_register__')) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…