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

Function deprecateInstantiation

lib/internal/util.js:220–226  ·  view source on GitHub ↗
(target, code, ...args)

Source from the content-addressed store, hash-verified

218}
219
220function deprecateInstantiation(target, code, ...args) {
221 assert(typeof code === 'string');
222
223 getDeprecationWarningEmitter(code, `Instantiating ${target.name} without the 'new' keyword has been deprecated.`, target)();
224
225 return ReflectConstruct(target, args);
226}
227
228function decorateErrorStack(err) {
229 if (!(isError(err) && err.stack) || err[decorated_private_symbol])

Callers 9

DeflateFunction · 0.85
InflateFunction · 0.85
GzipFunction · 0.85
GunzipFunction · 0.85
DeflateRawFunction · 0.85
InflateRawFunction · 0.85
UnzipFunction · 0.85
BrotliCompressFunction · 0.85
BrotliDecompressFunction · 0.85

Calls 2

assertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…