hasclass / core-lib

A port of the Ruby 1.9.3 corelib to coffeescript/javascript/node that conforms to rubyspec.org.
Other
545 stars 24 forks source link

Refactor errors.coffee #6

Closed kossnocorp closed 11 years ago

hasclass commented 11 years ago

Is the do (error) -> here really needed? I don't see what could go wrong without it.

kossnocorp commented 11 years ago

@hasclass sorry for long answer, but yes do (error) -> is necessary because of closure in errorClass.new = -> new RubyJS[error](error).

hasclass commented 11 years ago

yeah. found out the hard way :)