aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2014-01-08 11:47:59 -0800
committerAnthony Pesch <inolen@gmail.com>2014-01-09 12:14:51 -0800
commit3cb6d3bca44377f9cf198a095da857413efdc9a8 (patch)
tree7c0c26015434866684d6c10461951471af90ca6f
parent6a95326c3b8f577652457a3f5f410cb70fce587c (diff)
utilize stack member from base Error class
-rw-r--r--src/library_fs.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library_fs.js b/src/library_fs.js
index 1e7856aa..e6b060f6 100644
--- a/src/library_fs.js
+++ b/src/library_fs.js
@@ -1102,7 +1102,9 @@ mergeInto(LibraryManager.library, {
}
}
this.message = ERRNO_MESSAGES[errno];
- this.stack = stackTrace();
+#if ASSERTIONS
+ if (this.stack) this.stack = demangleAll(this.stack);
+#endif
};
FS.ErrnoError.prototype = new Error();
FS.ErrnoError.prototype.constructor = FS.ErrnoError;