Closed
Description
This issue was originally filed by ladicek@gmail.com
Calling toString() on a closure always returns "Closure". However, if the closure is implicit (i.e., if it actually is a closurized function), the toString() method can provide more details. This can be very helpful when dealing with accidental closurization.
I'm attaching a patch against the Dart VM. Please, let me know if you agree with this change, so that I can issue a pull request, or if you want to discuss it some more.
Attachment:
0001-better-toString-for-closurized-functions.patch (1.09 KB)
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
madsager commentedon Apr 23, 2012
Added Area-VM, Triaged labels.
ghost commentedon Apr 23, 2012
Set owner to @crelier.
crelier commentedon Apr 23, 2012
Printing the signature of the closure will also be useful.
I have a cl under review.
Thanks to Ladislav Thon for the suggestion!
Added Started label.
crelier commentedon Apr 23, 2012
Fixed in r6861.
Added Fixed label.
Bump pub