From daef2e7fd7f4f535569ca00c5a45adca1757bcf6 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Thu, 29 Mar 2018 13:22:33 -0700 Subject: [PATCH] buffer: removed unneeded FastBuffer constructor PR-URL: https://github.com/nodejs/node/pull/19684 Reviewed-By: Anna Henningsen Reviewed-By: Jackson Tian Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/buffer.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/buffer.js b/lib/buffer.js index 0737b8eccc5584..753b16933c1b57 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -76,11 +76,7 @@ const { setupBufferJS } = internalBuffer; const bindingObj = {}; -class FastBuffer extends Uint8Array { - constructor(arg1, arg2, arg3) { - super(arg1, arg2, arg3); - } -} +class FastBuffer extends Uint8Array {} FastBuffer.prototype.constructor = Buffer; internalBuffer.FastBuffer = FastBuffer;