mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
bd7443ad0a
PR-URL: https://github.com/nodejs-private/node-private/pull/438 Fixes: https://github.com/nodejs-private/node-private/issues/422 CVE-ID: CVE-2023-32558
29 lines
465 B
JavaScript
29 lines
465 B
JavaScript
const common = require('../../common');
|
|
common.skipIfWorker();
|
|
|
|
const assert = require('assert');
|
|
|
|
{
|
|
assert.throws(() => {
|
|
process.binding();
|
|
}, common.expectsError({
|
|
code: 'ERR_ACCESS_DENIED',
|
|
}));
|
|
}
|
|
|
|
{
|
|
assert.throws(() => {
|
|
process.binding('async_wrap');
|
|
}, common.expectsError({
|
|
code: 'ERR_ACCESS_DENIED',
|
|
}));
|
|
}
|
|
|
|
{
|
|
assert.throws(() => {
|
|
process.binding('fs');
|
|
}, common.expectsError({
|
|
code: 'ERR_ACCESS_DENIED',
|
|
}));
|
|
}
|