diff --git a/src/messages.js b/src/messages.js index 1df1c8c45a..e3d941b039 100644 --- a/src/messages.js +++ b/src/messages.js @@ -1189,7 +1189,7 @@ function SetUpError() { if (!IS_UNDEFINED(m)) { %AddProperty(this, 'message', ToString(m), DONT_ENUM); } - captureStackTrace(this, f); + try { captureStackTrace(this, f); } catch (e) { } } else { return new f(m); }