Skip to content

Commit

Permalink
Fix buffer usage in tests as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiesey committed Jan 12, 2016
1 parent 6dea87e commit 154f6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/browser/lib/webworker-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (self) {
var buffers = []

res.on('end', function () {
self.postMessage(Buffer.concat(buffers).toArrayBuffer())
self.postMessage(Buffer.concat(buffers).buffer)
})

res.on('data', function (data) {
Expand Down

0 comments on commit 154f6b9

Please sign in to comment.