Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// original (broken) version is here:
// My fix: don't treat arguments as if it were an array
// (Use to convert it)
function stacktrace() {
function st2(f) {
return !f ? [] :
st2(f.caller).concat([f.toString().split('(')[0].substring(9) + '(' +',') + ')']);
return st2(arguments.callee.caller);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment