mirror of
https://github.com/nodejs/node.git
synced 2025-05-19 20:06:58 +00:00

PR-URL: https://github.com/nodejs/node/pull/23597 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
14 lines
330 B
JavaScript
14 lines
330 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
|
|
// Flags: --pending-deprecation
|
|
|
|
common.expectWarning(
|
|
'DeprecationWarning',
|
|
'Directly calling process.binding(\'uv\').errname(<val>) is being ' +
|
|
'deprecated. Please make sure to use util.getSystemErrorName() instead.',
|
|
'DEP0119'
|
|
);
|
|
|
|
process.binding('uv').errname(-1);
|