Webpack build for branch master: 0acb0ac5dc

This commit is contained in:
Travis CI 2017-07-29 20:06:48 +00:00
parent 3167a35e59
commit 5989183e83
2 changed files with 2 additions and 1 deletions

View file

@ -17400,6 +17400,7 @@ class WebSocketConnection extends EventEmitter {
* @returns {Object}
*/
unpack(data) {
if (Array.isArray(data)) data = Buffer.concat(data);
if (data instanceof ArrayBuffer) data = Buffer.from(new Uint8Array(data));
if (erlpack && typeof data !== 'string') return erlpack.unpack(data);

File diff suppressed because one or more lines are too long