Skip to content

Commit c568dfa

Browse files
Trottevanlucas
authored andcommitted
test: refactor pummel/test-dtrace-jsstack
* `os.type()` check -> `common.isSunOS` * != -> !== * == -> === PR-URL: #8175 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent cfbafd7 commit c568dfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎test/pummel/test-dtrace-jsstack.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const common = require('../common');
33
varassert=require('assert');
44
varos=require('os');
55

6-
if(os.type()!='SunOS'){
6+
if(!common.isSunOS){
77
common.skip('no DTRACE support');
88
return;
99
}
@@ -52,7 +52,7 @@ dtrace.stdout.on('data', function(data){
5252
});
5353

5454
dtrace.on('exit',function(code){
55-
if(code!=0){
55+
if(code!==0){
5656
console.error('dtrace exited with code '+code);
5757
process.exit(code);
5858
}
@@ -65,7 +65,7 @@ dtrace.on('exit', function(code){
6565
for(vari=0;i<lines.length;i++){
6666
varline=lines[i];
6767

68-
if(line.indexOf(sentinel)==-1||frames.length===0)
68+
if(line.indexOf(sentinel)===-1||frames.length===0)
6969
continue;
7070

7171
varframe=line.substr(line.indexOf(sentinel)+sentinel.length);

0 commit comments

Comments
(0)