mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
8172f4547e
Stashing it away in internal/buffer so that it can't be used in userland, but can still be used in internals. PR-URL: https://github.com/nodejs/node/pull/16391 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
14 lines
332 B
JavaScript
14 lines
332 B
JavaScript
'use strict';
|
|
|
|
const binding = process.binding('buffer');
|
|
const { setupBufferJS } = binding;
|
|
|
|
// Remove from the binding so that function is only available as exported here.
|
|
// (That is, for internal use only.)
|
|
delete binding.setupBufferJS;
|
|
|
|
// FastBuffer wil be inserted here by lib/buffer.js
|
|
module.exports = {
|
|
setupBufferJS
|
|
};
|