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

Method constructor

lib/internal/errors.js:413–422  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

411function makeNodeErrorForHideStackFrame(Base, clazz) {
412 class HideStackFramesError extends Base {
413 constructor(...args) {
414 if (isErrorStackTraceLimitWritable()) {
415 const limit = Error.stackTraceLimit;
416 Error.stackTraceLimit = 0;
417 super(...args);
418 Error.stackTraceLimit = limit;
419 } else {
420 super(...args);
421 }
422 }
423
424 // This is a workaround for wpt tests that expect that the error
425 // constructor has a `name` property of the base class.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected