mirror of
https://github.com/nodejs/node.git
synced 2025-05-10 14:09:34 +00:00

PR-URL: https://github.com/nodejs/node/pull/22204 Refs: https://github.com/nodejs/node/issues/22160 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
16 lines
441 B
JavaScript
16 lines
441 B
JavaScript
// 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'));
|