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

Function warnOnce

src/utility.mjs:76–81  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

74const seenWarnings = new Set();
75
76export function warnOnce(msg) {
77 if (!seenWarnings.has(msg)) {
78 seenWarnings.add(msg);
79 warn(msg);
80 }
81}
82
83let abortExecution = false;
84

Callers 15

addFromLibraryFunction · 0.90
alignfaultFunction · 0.70
postamble.jsFile · 0.70
missingGlobalFunction · 0.70
missingLibrarySymbolFunction · 0.70
libopenal.jsFile · 0.50
libglfw.jsFile · 0.50
dbgFunction · 0.50
libwebgl.jsFile · 0.50
libsdl.jsFile · 0.50
libwasi.jsFile · 0.50

Calls 3

hasMethod · 0.80
warnFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected