Skip to content

Commit

Permalink
buffer: removed unneeded FastBuffer constructor
Browse files Browse the repository at this point in the history
PR-URL: #19684
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Jackson Tian <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
TimothyGu authored and jasnell committed Apr 16, 2018
1 parent dfea13a commit daef2e7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit daef2e7

Please sign in to comment.