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:
Rafael Gonzaga authored and RafaelGSS committed 2025-10-06 22:41:29 -03:00
1 parent a533e5b5db
commit 3b92be2fb8
2 files changed
-14

No files matched your search

-5
View File
@@ -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,
-9
View File
@@ -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();