How to use the stack-chain.callSite function in stack-chain

To help you get started, we’ve selected a few stack-chain examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AndreasMadsen / trace / trace.js View on Github external
function getCallSites(skip) {
  const limit = Error.stackTraceLimit;

  Error.stackTraceLimit = limit + skip;
  const stack = chain.callSite({
    extend: false,
    filter: true,
    slice: skip
  });
  Error.stackTraceLimit = limit;

  return stack;
}
github AndreasMadsen / dprof / async_wrap.js View on Github external
AsyncWrap.prototype.stackTrace = function (skip) {
  const limit = Error.stackTraceLimit;
  const slice = skip + this.skip;

  Error.stackTraceLimit = limit + slice;
  const stack = chain.callSite({
    extend: false,
    filter: true,
    slice: slice
  });
  Error.stackTraceLimit = limit;

  return stack;
};
github AndreasMadsen / dprof / dprof.js View on Github external
function getCallSites(skip) {
  const limit = Error.stackTraceLimit;

  Error.stackTraceLimit = limit + skip;
  const stack = chain.callSite({
    extend: false,
    filter: true,
    slice: skip
  });
  Error.stackTraceLimit = limit;

  return stack;
}
github AndreasMadsen / trace / async_wrap.js View on Github external
AsyncWrap.prototype.stackTrace = function (skip) {
  const limit = Error.stackTraceLimit;
  const slice = skip + this.skip;

  Error.stackTraceLimit = limit + slice;
  const stack = chain.callSite({
    extend: false,
    filter: true,
    slice: slice
  });
  Error.stackTraceLimit = limit;

  return stack;
};

stack-chain

API for combining call site modifiers

MIT
Latest version published 7 years ago

Package Health Score

65 / 100
Full package analysis