aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-13 11:23:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-13 11:23:23 -0700
commit345e6074799571df9a4c9a13ef2e7ac0f6ba264b (patch)
tree0df25efb4744a8518141583e44df7819130c1178 /src
parentb89aaf0419ec3c58a13eb941be6ed3492b97281d (diff)
demangle all functions in stack traces, not just one
Diffstat (limited to 'src')
-rw-r--r--src/preamble.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 33e80217..2e874519 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -752,7 +752,7 @@ function demangle(func) {
}
function demangleAll(text) {
- return text.replace(/__Z[\w\d_]+/, function(x) { var y = demangle(x); return x === y ? x : (x + ' (' + y + ')') });
+ return text.replace(/__Z[\w\d_]+/g, function(x) { var y = demangle(x); return x === y ? x : (x + ' [' + y + ']') });
}
function stackTrace() {