All files / lib/internal/test binding.js

81.25% Statements 13/16
50% Branches 1/2
100% Functions 0/0
81.25% Lines 13/16

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17131x 131x 131x 131x 131x 131x 131x 131x 131x 131x 131x       131x 131x  
'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 };