File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,21 +8,22 @@ var timeout;
88var timeoutd = domain . create ( ) ;
99
1010timeoutd . on ( 'error' , common . mustCall ( function ( e ) {
11- assert . equal ( e . message , 'Timeout UNREFd' , 'Domain should catch timer error' ) ;
11+ assert . strictEqual ( e . message , 'Timeout UNREFd' ,
12+ 'Domain should catch timer error' ) ;
1213 clearTimeout ( timeout ) ;
1314} ) ) ;
1415
1516timeoutd . run ( function ( ) {
1617 setTimeout ( function ( ) {
1718 throw new Error ( 'Timeout UNREFd' ) ;
18- } ) . unref ( ) ;
19+ } , 0 ) . unref ( ) ;
1920} ) ;
2021
2122var immediated = domain . create ( ) ;
2223
2324immediated . on ( 'error' , common . mustCall ( function ( e ) {
24- assert . equal ( e . message , 'Immediate Error' ,
25- 'Domain should catch immediate error' ) ;
25+ assert . strictEqual ( e . message , 'Immediate Error' ,
26+ 'Domain should catch immediate error' ) ;
2627} ) ) ;
2728
2829immediated . run ( function ( ) {
You can’t perform that action at this time.
0 commit comments