aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 80c107a5..f58c7150 100644
--- a/src/library.js
+++ b/src/library.js
@@ -5157,7 +5157,9 @@ LibraryManager.library = {
// We'll do that here, instead, to keep things simpler.
__cxa_find_matching_catch__deps: ['__cxa_does_inherit', '__cxa_is_number_type'],
- __cxa_find_matching_catch: function(thrown, throwntype, typeArray) {
+ __cxa_find_matching_catch: function(thrown, throwntype) {
+ var typeArray = Array.prototype.slice.call(arguments, 2);
+
// If throwntype is a pointer, this means a pointer has been
// thrown. When a pointer is thrown, actually what's thrown
// is a pointer to the pointer. We'll dereference it.