We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 565d780 commit 354c7cdCopy full SHA for 354c7cd
lib/client.js
@@ -337,18 +337,12 @@ extend(Raven.prototype, {
337
var eventId = this.generateEventId();
338
339
if (this.stacktrace) {
340
- var ex;
341
- // Generate a "synthetic" stack trace
342
- try {
343
- throw new Error(message);
344
- } catch (ex1) {
345
- ex = ex1;
346
- }
+ var ex = new Error(message);
347
348
utils.parseStack(
349
ex,
350
function(frames) {
351
- // We trim last frame, as it's our `throw new Error(message)` call itself, which is redundant
+ // We trim last frame, as it's our `new Error(message)` statement itself, which is redundant
352
kwargs.stacktrace = {
353
frames: frames.slice(0, -1)
354
};
0 commit comments