mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
lib: remove util.getCallSite
This API has been replaced by util.getCallSites(). It was previously experimental with a warning about its usage and its removal in a semver-minor PR. Here it is. PR-URL: https://github.com/nodejs/node/pull/59980 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
a533e5b5db
commit
3b92be2fb8
2 files changed
-14
No files matched your search
@@ -473,11 +473,6 @@ module.exports = {
|
||||
format,
|
||||
styleText,
|
||||
formatWithOptions,
|
||||
// Deprecated getCallSite.
|
||||
// This API can be removed in next semver-minor release.
|
||||
getCallSite: deprecate(getCallSites,
|
||||
'The `util.getCallSite` API has been renamed to `util.getCallSites()`.',
|
||||
'ExperimentalWarning'),
|
||||
getCallSites,
|
||||
getSystemErrorMap,
|
||||
getSystemErrorName,
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
require('../common');
|
||||
const { getCallSite } = require('node:util');
|
||||
const { expectWarning } = require('../common');
|
||||
|
||||
const warning = 'The `util.getCallSite` API has been renamed to `util.getCallSites()`.';
|
||||
expectWarning('ExperimentalWarning', warning);
|
||||
getCallSite();
|
||||
Reference in new issue
Block a user