export default function(a, b) {
  var ab = new a.constructor(a.length + b.length);
  ab.set(a, 0);
  ab.set(b, a.length);
  return ab;
}

export default function(a, b) {
  var ab = new Uint8Array(a.length + b.length);
  ab.set(a, 0);
  ab.set(b, a.length);
  return ab;
}

Fix for older versions of Node.
Fix for older versions of Node.

Older versions of Node had a conflicting implementation of buffer.set.
