mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01: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:
parent
6797c6e1f8
commit
b757a8f2b4
|
|
@ -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();
|
||||
Loading…
Reference in New Issue
Block a user