aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-process-binding-internalbinding-whitelist.js
blob: 56715799f88506b5f0ac1d3990d5903f4c31ee87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Flags: --no-warnings
'use strict';

require('../common');
const assert = require('assert');

// Assert that whitelisted internalBinding modules are accessible via
// process.binding().
assert(process.binding('uv'));
assert(process.binding('http_parser'));
assert(process.binding('v8'));
assert(process.binding('stream_wrap'));
assert(process.binding('signal_wrap'));
assert(process.binding('contextify'));
assert(process.binding('url'));
assert(process.binding('spawn_sync'));
assert(process.binding('js_stream'));