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:
Anna Henningsen 2017-02-28 15:16:10 +01:00
parent 9b2dd47704
commit 6d93508369
No known key found for this signature in database
GPG Key ID: D8B9F5AEAE84E4CF

View File

@ -1398,4 +1398,6 @@ Buffer.prototype.toLocaleString = Buffer.prototype.toString;
// Put this at the end because internal/buffer has a circular
// dependency on Buffer.
exports.transcode = require('internal/buffer').transcode;
const internalBuffer = require('internal/buffer');
exports.transcode = internalBuffer.transcode;
internalBuffer.FastBuffer = FastBuffer;