Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: move and update trace example
  • Loading branch information
AndreasMadsen committed Dec 28, 2015
commit 7313cfe3b2da6087eb7b67f56042d3203c00d12b
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const fs = require('fs');
const net = require('net');
const getStack = require('./example-trace.js');
const getStack = require('./trace.js');

Error.stackTraceLimit = Infinity;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ asyncWrap.enable();
// global state variable, that contains the current stack trace
let currentStack = '';

function init(provider, parent) {
function init(provider, uid, parent) {
// When a handle is created, collect the stack trace such that we later
// can see what involved the handle constructor.
const localStack = (new Error()).stack.split('\n').slice(1).join('\n');
Expand Down