Skip to content

Commit 11f761a

Browse files
TrottMylesBorins
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 2997b79 commit 11f761a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/pummel/test-dtrace-jsstack.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const common = require('../common');
33
var assert = require('assert');
44
var os = 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 (var i = 0; i < lines.length; i++) {
6666
var line = 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
var frame = line.substr(line.indexOf(sentinel) + sentinel.length);

0 commit comments

Comments
 (0)