BTW, here, we can probably do simply:

stack = new Error().stack