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 2025-10-06 15:14:18 -03:00 committed by GitHub
parent 6797c6e1f8
commit b757a8f2b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 14 deletions

View File

@ -473,11 +473,6 @@ module.exports = {
format, format,
styleText, styleText,
formatWithOptions, 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, getCallSites,
getSystemErrorMap, getSystemErrorMap,
getSystemErrorName, getSystemErrorName,

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();