summaryrefslogtreecommitdiff
path: root/lib/internal/test/binding.js
blob: aae89ce7a0f5ea9e585bbd8328530f3ec31f884a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';

process.emitWarning(
  'These APIs are exposed only for testing and are not ' +
  'tracked by any versioning system or deprecation process.',
  'internal/test/binding');

// These exports should be scoped as specifically as possible
// to avoid exposing APIs because even with that warning and
// this file being internal people will still try to abuse it.
const { internalBinding } = require('internal/bootstrap_loaders');
module.exports = {
  ModuleWrap: internalBinding('module_wrap').ModuleWrap,
};