emscripten-core / emscripten-core/emscripten

[question] demangleAll + regexp + "_Z"

Open
#18,578 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Hi,

I have an issue with WASM loading in Angular. During WASM loading there are certain expected errors to happen (like around Errno handling). In Angular my callstack contains "_ZoneDelegate", which means that the binding code matches to it, because of the following function:

function demangleAll(text) {
var regex = /\b_Z[\w\d_]+/g;
return text.replace(regex, function(x) {
var y = demangle(x);
return x === y ? x : y + " [" + x + "]";
});
}

This has a disastrous effect as __cxa_demangle will not be found in my module and loading the WASM fails because of this:

assert(__cxa_demangle_func);

Any hint how to overcome this?
Thanks,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.