Christoph Thiede uploaded a new version of KernelTests to project The Trunk: http://source.squeak.org/trunk/KernelTests-jar.449.mcz
==================== Summary ====================
Name: KernelTests-jar.449 Author: jar Time: 2 January 2024, 12:28:08.184411 pm UUID: decf5a85-87ad-5849-b692-ee28940eab41 Ancestors: KernelTests-jar.448
Test if #return:from: correctly handles returns to nil contexts
=============== Diff against KernelTests-jar.448 ===============
Item was added: + ----- Method: ContextTest>>testBlockCannotReturnToNil (in category 'tests') ----- + testBlockCannotReturnToNil + "Test if #return:from: correctly handles returns to dead or nil contexts." + + | context nextContext | + context := [] asContext. + + "assert p is at the last instruction, i.e. a return, and is about to return to a nil context" + self assert: context method selector = thisContext method selector. + self assert: context sender isNil. + self assert: context willReturn. + self assert: context atEnd. + + nextContext := context step. "step into a return to a nil sender" + + self assert: nextContext method selector = #cannotReturn:!
squeak-dev@lists.squeakfoundation.org