diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-11 11:14:53 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-11 11:14:53 -0700 |
commit | 77e8b7dc65244ec83a53340394fd57f3632b317a (patch) | |
tree | 830d58a130339071be1d3077693a9d9e53f70e2c /src | |
parent | f69f770f7c9c9e1fff85b2ba0b89b512a5ab56ed (diff) |
improve demangler a little
Diffstat (limited to 'src')
-rw-r--r-- | src/preamble.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js index 3f724562..89ab5026 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -805,7 +805,14 @@ function demangle(func) { } } if (!allowVoid && list.length === 1 && list[0] === 'void') list = []; // avoid (void) - return rawList ? list : ret + flushList(); + if (rawList) { + if (ret) { + list.push(ret + '?'); + } + return list; + } else { + return ret + flushList(); + } } try { // Special-case the entry point, since its name differs from other name mangling. |