All files / src/internal buffer.ts

85.71% Statements 6/7
50% Branches 2/4
50% Functions 1/2
80% Lines 4/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 1146x           46x 46x   5120x  
import { Buffer } from 'buffer';
 
function bufferV0P12Ponyfill(arg0: any, ...args: any): Buffer {
  return new Buffer(arg0, ...args);
}
 
const bufferAllocUnsafe = Buffer.allocUnsafe || bufferV0P12Ponyfill;
const bufferFrom = Buffer.from || bufferV0P12Ponyfill;
 
export { Buffer, bufferAllocUnsafe, bufferFrom };