bkconrad / wasabi

MIT License
31 stars 1 forks source link

make wasabi work with coffeescript, ie #24

Closed mreinstein closed 10 years ago

mreinstein commented 10 years ago

ie doesn't support fn.name property. coffee-script only generates anonymous classes. This puts the name of a property function into fn.wasabiFnName, and uses that if fn.name is empty. #23

bkconrad commented 10 years ago

Merged, but I had to make some changes to get the tests to pass. This actually revealed the troubling fact that Function.prototype.name isn't standard but the representation in toString() is. Let me know if my changes left your fixes in-tact.

And thanks!

mreinstein commented 10 years ago

I just noticed that 3 tests were failing after my commit. I also noticed that you are using a wsb prefix instead of wasabi. Sorry bout that!