-
Notifications
You must be signed in to change notification settings - Fork 280
Closed
Description
I'm trying to get the "stacktrace" string and return it other than log it in the console. However, following code doesn't work...
function getStacktrace() {
var stringifiedStack;
var callback = function(stackframes) {
stringifiedStack = stackframes.map(function(sf) {
return sf.toString();
}).join('\n');
//console.log(stringifiedStack);
};
var errback = function(err) {
console.log(err.message);
};
StackTrace.get().then(callback).catch(errback);
//console.log(stringifiedStack);
return stringifiedStack;
}
Metadata
Metadata
Assignees
Labels
No labels