all files / lib/deps/binary/ cloneBinaryObject.js

100% Statements 7/7
100% Branches 0/0
100% Functions 1/1
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13        2115× 2115× 2115×    
"use strict";
 
Object.defineProperty(exports, "__esModule", {
  value: true
});
function cloneBinaryObject(object) {
  var copy = new Buffer(object.length);
  object.copy(copy);
  return copy;
}
 
exports.default = cloneBinaryObject;
module.exports = exports['default'];