AndreasMadsen / trace

Creates super long stack traces
https://trace.js.org
MIT License
194 stars 18 forks source link

attempting to print the stack results in a TypeError #23

Closed cdaringe closed 8 years ago

cdaringe commented 8 years ago
debug> repl
Press Ctrl + C to leave debug repl
> e = new Error('e')
{ handle: 6,
  type: 'error',
  className: 'Error',
  constructorFunction: { ref: 7 },
  protoObject: { ref: 8 },
  prototypeObject: { ref: 1 },
  properties:
   [ { name: 'stack', attributes: 2, propertyType: 3, ref: 1 },
     { name: 'message', attributes: 2, propertyType: 0, ref: 9 } ],
  text: 'Error: e' }
> e.stack
TypeError: Cannot read property 'slice' of undefined
AndreasMadsen commented 8 years ago

node -e "require('trace'); console.log((new Error).stack)"

works for me, so does the manual input into the repl.

What version of node and trace are you using? If you have updated node please also update trace, even if the version of trace match its dependencies may have been updated.

cdaringe commented 8 years ago

interesting. unable to replicate. closing. will revisit if it comes up again!