Skip to content

Commit c943b75

Browse files
committed
Merge pull request #381 from uProxy/trevj-grunt-browserify-5.0
move to grunt-browserify, with fix for node tcp shim
2 parents 0e133ec + 49de614 commit c943b75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"freedom-pgp-e2e": "^0.6.1",
4242
"freedom-xhr": "0.0.5",
4343
"grunt": "^0.4.5",
44-
"grunt-browserify": "^4.0.0",
44+
"grunt-browserify": "^5.0.0",
4545
"grunt-contrib-clean": "^0.7.0",
4646
"grunt-contrib-coffee": "^0.13.0",
4747
"grunt-contrib-copy": "^0.8.0",

src/cloud/social/shim/tcp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ FreedomTCP.prototype._writeNative = function(req, data) {
8282
};
8383

8484
FreedomTCP.prototype.writeBuffer = function(req, buf) {
85-
var data = buf.toArrayBuffer();
86-
this._writeNative(req, data);
85+
// buf is a NodeJS Buffer, the buffer field of which is a Uint8Array.
86+
this._writeNative(req, buf.buffer);
8787
};
8888

8989
FreedomTCP.prototype.writeAsciiString = function(req, s) {

0 commit comments

Comments
 (0)