summaryrefslogtreecommitdiff
path: root/test/parallel/test-err-name-deprecation.js
blob: d9af7e3804ec4ab98b5cf7d2e81ef048b42ec6cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'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);