MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / missingGlobal

Function missingGlobal

src/runtime_debug.js:128–132  ·  view source on GitHub ↗
(sym, msg)

Source from the content-addressed store, hash-verified

126}
127
128function missingGlobal(sym, msg) {
129 hookGlobalSymbolAccess(sym, () => {
130 warnOnce(`\`${sym}\` is no longer defined by emscripten. ${msg}`);
131 });
132}
133
134missingGlobal('buffer', 'Please use HEAP8.buffer or wasmMemory.buffer');
135missingGlobal('asm', 'Please use wasmExports instead');

Callers 1

runtime_debug.jsFile · 0.70

Calls 2

hookGlobalSymbolAccessFunction · 0.70
warnOnceFunction · 0.70

Tested by

no test coverage detected