diff --git a/lib/buffer.js b/lib/buffer.js index 876bdbe1cfd..86aa2e512ea 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -6,7 +6,11 @@ const { isArrayBuffer, isSharedArrayBuffer } = process.binding('util'); const bindingObj = {}; const internalUtil = require('internal/util'); -class FastBuffer extends Uint8Array {} +class FastBuffer extends Uint8Array { + constructor(arg1, arg2, arg3) { + super(arg1, arg2, arg3); + } +} FastBuffer.prototype.constructor = Buffer; Buffer.prototype = FastBuffer.prototype;