affect the failBlock so it can be return in case of error - #19735
affect the failBlock so it can be return in case of error #19735stella-pas-rose wants to merge 7 commits into
Conversation
|
The doc comments fail with an exception: Integer class>>#readFrom:ifFail:: Doc comment is not well formed. Content: self readFrom: '\' ifFail: [false] >>> false Traza de la pila Error |
| failBlock := [ ^ aBlock value ]. | ||
|
|
There was a problem hiding this comment.
The failBlock is meant to be culled with error and position, so it shouldn't be wrapped in a no-args block.
| failBlock := [ ^ aBlock value ]. | |
| failBlock := aBlock. |
|
Adding a test would be great, so the intended culling behavior is preserved. |
|
Hi gabriel I'm not sure but the changes are not equivalent because the [ ^ aBlock value ] acts as an exception (It was probably the way they coded exception before exception. |
we applied the suggested correction! :)
@Solomanoa
Close #19618