Colin Putney uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-cwp.97.mcz==================== Summary ====================
Name: Compiler-cwp.97
Author: cwp
Time: 16 November 2009, 8:35:05 am
UUID: 815de973-26b4-4f93-b1ee-4905e56fa4b3
Ancestors: Compiler-nice.96
Added a test that demonstrates a bug in block copying.
If a block containing a return is copied, it will raise BlockCannotReturn when it's evaluated, even if the home context is still on the stack.
http://bugs.squeak.org/view.php?id=7414=============== Diff against Compiler-nice.96 ===============
Item was added:
+ ----- Method: ClosureTests>>evaluateCopyOf: (in category 'utilities') -----
+ evaluateCopyOf: aBlock
+ aBlock copy value!
Item was added:
+ ----- Method: ClosureTests>>testCopyNonLocalReturn (in category 'testing') -----
+ testCopyNonLocalReturn
+ self
+ shouldnt: [self methodWithNonLocalReturn]
+ raise: Error!
Item was added:
+ ----- Method: ClosureTests>>methodWithNonLocalReturn (in category 'utilities') -----
+ methodWithNonLocalReturn
+ self evaluateCopyOf: [^ self].
+ self signalFailure: 'Should never reach here'!