AndreasMadsen / async-hook

Inspect the life of handle objects in node
MIT License
36 stars 14 forks source link

fix: handle undefined CallSite filenames #3

Closed omsmith closed 8 years ago

omsmith commented 8 years ago

getFileName() can return undefined, such as a function defined using eval

(Ran into this with sinon, which has been fixed in an unreleased commit)

AndreasMadsen commented 8 years ago

Thanks, landed in 140d75ed2bb391c1ee645c491032a844190a68b2 with some minor changes.

omsmith commented 8 years ago

:+1: Thanks