Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Displaying array with no objects of call sites. #21

Open
jainAdijain opened this issue Sep 26, 2017 · 0 comments
Open

Displaying array with no objects of call sites. #21

jainAdijain opened this issue Sep 26, 2017 · 0 comments

Comments

@jainAdijain
Copy link

Hi I am using the stack-trace as follows:

//required stack-trace

func.todo =  function (todo.id,cb){
var trace = stackTrace.get(func.todo);
console.log('Trace', trace);

//more function calls
}

The console displays the output as follows:

Trace [ callSite{},
callSite {},
callSite{},
"
"
"
"
"
callSite{}]

Proper callsite names and the objects of every call site is not displayed.
But when I use

var err= 'Something went wrong';
var trace = stackTrace.parse(err);

The proper callSites with names and their objects are displayed.

Why is this so?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant