Skip to content

Displaying array with no objects of call sites. #21

@jainAdijain

Description

@jainAdijain

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions