stack-trace.js 178 B

1234567891011121314151617
  1. 'use strict';
  2. function blah() {
  3. throw new Error('Blarrh')
  4. }
  5. var stack;
  6. try {
  7. blah();
  8. } catch(err) {
  9. stack = err.stack;
  10. }
  11. module.exports = function() {
  12. return stack;
  13. }