Skip to content

[question] demangleAll + regexp + "_Z" #18578

@harsszegi

Description

@harsszegi

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions