@@ -482,8 +482,7 @@ describe('globals', function() {
482
482
}
483
483
} ]
484
484
} ,
485
- culprit : 'http://example.com/file1.js' ,
486
- message : 'Error: lol'
485
+ culprit : 'http://example.com/file1.js'
487
486
} ] ) ;
488
487
489
488
Raven . _processException ( 'Error' , 'lol' , '' , 10 , frames . slice ( 0 ) , { } ) ;
@@ -497,8 +496,7 @@ describe('globals', function() {
497
496
}
498
497
} ]
499
498
} ,
500
- culprit : 'http://example.com/file1.js' ,
501
- message : 'Error: lol'
499
+ culprit : 'http://example.com/file1.js'
502
500
} ] ) ;
503
501
504
502
Raven . _processException ( 'Error' , 'lol' , '' , 10 , frames . slice ( 0 ) , { extra : 'awesome' } ) ;
@@ -513,7 +511,6 @@ describe('globals', function() {
513
511
} ]
514
512
} ,
515
513
culprit : 'http://example.com/file1.js' ,
516
- message : 'Error: lol' ,
517
514
extra : 'awesome'
518
515
} ] ) ;
519
516
} ) ;
@@ -536,8 +533,7 @@ describe('globals', function() {
536
533
}
537
534
} ]
538
535
} ,
539
- culprit : 'http://example.com/override.js' ,
540
- message : 'Error: lol'
536
+ culprit : 'http://example.com/override.js'
541
537
} ] ) ;
542
538
543
539
Raven . _processException ( 'Error' , 'lol' , 'http://example.com/override.js' , 10 , [ ] , { } ) ;
@@ -555,8 +551,7 @@ describe('globals', function() {
555
551
}
556
552
} ]
557
553
} ,
558
- culprit : 'http://example.com/override.js' ,
559
- message : 'Error: lol'
554
+ culprit : 'http://example.com/override.js'
560
555
} ] ) ;
561
556
562
557
Raven . _processException ( 'Error' , 'lol' , 'http://example.com/override.js' , 10 , [ ] , { extra : 'awesome' } ) ;
@@ -575,7 +570,6 @@ describe('globals', function() {
575
570
} ]
576
571
} ,
577
572
culprit : 'http://example.com/override.js' ,
578
- message : 'Error: lol' ,
579
573
extra : 'awesome'
580
574
} ] ) ;
581
575
} ) ;
@@ -586,13 +580,6 @@ describe('globals', function() {
586
580
Raven . _processException ( 'TypeError' , undefined , 'http://example.com' , [ ] ) ;
587
581
assert . isTrue ( Raven . _send . called ) ;
588
582
} ) ;
589
-
590
- it ( 'should omit error name as part of message if error name is undefined/falsy' , function ( ) {
591
- this . sinon . stub ( Raven , '_send' ) ;
592
-
593
- Raven . _processException ( undefined , '\'foo\' is undefined' , 'http://example.com' , 10 ) ; // IE9 ReferenceError
594
- assert . deepEqual ( Raven . _send . lastCall . args [ 0 ] . message , '\'foo\' is undefined' ) ;
595
- } ) ;
596
583
} ) ;
597
584
598
585
describe ( 'send' , function ( ) {
0 commit comments