This commit is contained in:
Travis CI 2017-01-02 06:53:56 +00:00
parent ff7edd40c2
commit 6688942253
2 changed files with 5 additions and 12 deletions

View file

@ -11096,14 +11096,7 @@ module.exports = RequestHandler;
/* 53 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(Buffer) {function arrayBufferToBuffer(ab) {
const buffer = new Buffer(ab.byteLength);
const view = new Uint8Array(ab);
for (var i = 0; i < buffer.length; ++i) buffer[i] = view[i];
return buffer;
}
function str2ab(str) {
/* WEBPACK VAR INJECTION */(function(Buffer) {function str2ab(str) {
const buffer = new ArrayBuffer(str.length * 2);
const view = new Uint16Array(buffer);
for (var i = 0, strLen = str.length; i < strLen; i++) view[i] = str.charCodeAt(i);
@ -11112,7 +11105,7 @@ function str2ab(str) {
module.exports = function convertArrayBuffer(x) {
if (typeof x === 'string') x = str2ab(x);
return arrayBufferToBuffer(x);
return Buffer.from(x);
};
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20).Buffer))

File diff suppressed because one or more lines are too long