Skip to content

Commit b649044

Browse files
committed
make sure we get a boolean
1 parent bde8f34 commit b649044

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/util/minimal.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ util.LongBits = require("./longbits");
3030
* @memberof util
3131
* @type {boolean}
3232
*/
33-
util.isNode = typeof global !== "undefined"
34-
&& global
35-
&& global.process
36-
&& global.process.versions
37-
&& global.process.versions.node;
33+
util.isNode = Boolean(typeof global !== "undefined"
34+
&& global
35+
&& global.process
36+
&& global.process.versions
37+
&& global.process.versions.node);
3838

3939
/**
4040
* Global object reference.

0 commit comments

Comments
 (0)