File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const common = require('../common');
3
3
var assert = require ( 'assert' ) ;
4
4
var os = require ( 'os' ) ;
5
5
6
- if ( os . type ( ) != 'SunOS' ) {
6
+ if ( ! common . isSunOS ) {
7
7
common . skip ( 'no DTRACE support' ) ;
8
8
return ;
9
9
}
@@ -52,7 +52,7 @@ dtrace.stdout.on('data', function(data) {
52
52
} ) ;
53
53
54
54
dtrace . on ( 'exit' , function ( code ) {
55
- if ( code != 0 ) {
55
+ if ( code !== 0 ) {
56
56
console . error ( 'dtrace exited with code ' + code ) ;
57
57
process . exit ( code ) ;
58
58
}
@@ -65,7 +65,7 @@ dtrace.on('exit', function(code) {
65
65
for ( var i = 0 ; i < lines . length ; i ++ ) {
66
66
var line = lines [ i ] ;
67
67
68
- if ( line . indexOf ( sentinel ) == - 1 || frames . length === 0 )
68
+ if ( line . indexOf ( sentinel ) === - 1 || frames . length === 0 )
69
69
continue ;
70
70
71
71
var frame = line . substr ( line . indexOf ( sentinel ) + sentinel . length ) ;
You can’t perform that action at this time.
0 commit comments