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

Function assertAt

tools/acorn-optimizer.mjs:23–32  ·  view source on GitHub ↗
(condition, node, message = '')

Source from the content-addressed store, hash-verified

21}
22
23function assertAt(condition, node, message = '') {
24 if (!condition) {
25 if (!process.env.EMCC_DEBUG_SAVE) {
26 message += ' (use EMCC_DEBUG_SAVE=1 to preserve temporary inputs)';
27 }
28 let err = new Error(message);
29 err['loc'] = acorn.getLineInfo(input, node.start);
30 throw err;
31 }
32}
33
34// Visits and walks
35// (We don't use acorn-walk because it ignores x in 'x = y'.)

Callers 2

emitDCEGraphFunction · 0.85
CallExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected