buffer: expose FastBuffer on internal/buffer
PR-URL: https://github.com/nodejs/node/pull/11048 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
9b2dd47704
commit
6d93508369
@ -1398,4 +1398,6 @@ Buffer.prototype.toLocaleString = Buffer.prototype.toString;
|
|||||||
|
|
||||||
// Put this at the end because internal/buffer has a circular
|
// Put this at the end because internal/buffer has a circular
|
||||||
// dependency on Buffer.
|
// dependency on Buffer.
|
||||||
exports.transcode = require('internal/buffer').transcode;
|
const internalBuffer = require('internal/buffer');
|
||||||
|
exports.transcode = internalBuffer.transcode;
|
||||||
|
internalBuffer.FastBuffer = FastBuffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user