mirror of
https://github.com/nodejs/node.git
synced 2025-05-07 04:41:47 +00:00

PR-URL: https://github.com/nodejs/node/pull/38211 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
17 lines
338 B
JavaScript
17 lines
338 B
JavaScript
'use strict';
|
|
|
|
const {
|
|
globalThis,
|
|
} = primordials;
|
|
|
|
process.emitWarning(
|
|
'These APIs are for internal testing only. Do not use them.',
|
|
'internal/test/binding');
|
|
|
|
if (module.isPreloading) {
|
|
globalThis.internalBinding = internalBinding;
|
|
globalThis.primordials = primordials;
|
|
}
|
|
|
|
module.exports = { internalBinding, primordials };
|