Skip to content

Commit f116c9f

Browse files
author
Forbes Lindesay
committed
Support just using global BitArray
1 parent 6818099 commit f116c9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bitarray.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ BitArray.prototype.toString = function(){
4040
return string.split('').reverse().join('').slice(0,this.size);
4141
}
4242

43-
module.exports = BitArray;
43+
if (typeof module != 'undefined')
44+
module.exports = BitArray;

0 commit comments

Comments
 (0)