MCPcopy Index your code
hub / github.com/nodejs/node / deprecateProperty

Function deprecateProperty

lib/internal/util.js:143–152  ·  view source on GitHub ↗
(key, msg, code, isPendingDeprecation)

Source from the content-addressed store, hash-verified

141}
142
143function deprecateProperty(key, msg, code, isPendingDeprecation) {
144 const emitDeprecationWarning = getDeprecationWarningEmitter(
145 code, msg, undefined, false, isPendingDeprecation,
146 );
147 return (options) => {
148 if (key in options) {
149 emitDeprecationWarning();
150 }
151 };
152}
153
154// Internal deprecator for pending --pending-deprecation. This can be invoked
155// at snapshot building time as the warning permission is only queried at

Callers 2

mock.jsFile · 0.85
core.jsFile · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…