You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove EM_LOG_C_STACK feature of emscripten_log (#23553)
This was supported by `emscripten-source-map.min.js` which seems like
minified source map parser, but I don't think this feature has worked
for at least 4 years since we switched to using wasm and wasm source
maps.
This feature was part of `emscripten_log` since it was first added in
26d6ad3 but I know of anyone that ever used it.
Fixes: #13089
warnOnce('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.');
27
-
flags^={{{cDefs.EM_LOG_C_STACK}}};
28
-
flags|={{{cDefs.EM_LOG_JS_STACK}}};
23
+
#if ASSERTIONS
24
+
if(flags&{{{cDefs.EM_LOG_C_STACK}}}){
25
+
warnOnce('emscripten_log with EM_LOG_C_STACK no longer has any effect');
29
26
}
27
+
#endif
30
28
31
29
// Process all lines:
32
30
varlines=callstack.split('\n');
@@ -72,23 +70,11 @@ var LibraryStackTrace = {
72
70
}
73
71
}
74
72
75
-
varhaveSourceMap=false;
76
-
77
-
if(flags&{{{cDefs.EM_LOG_C_STACK}}}){
78
-
var orig =emscripten_source_map.originalPositionFor({line: lineno,column: column});
0 commit comments