[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] pushRcvr fails for context instances whose sender has been set to an Integer instance (Issue #654)

Eliot Miranda notifications at github.com
Mon Sep 19 16:02:38 UTC 2022

Ah, of course.  I understand now.  Setting to an integer has disastrous consequences for the vm.  That must be prevented.

Possibly by coincidence Jaromir brought up the issue on squeak-dev, suggesting

```Context>>privSender: aContextOrNil
        sender := aContextOrNil ifNotNil: [aContextOrNil asContext]```

which I think is good.  I would validate by sending asContext in the relevant places.  If necessary we can introduce something only understood by Context and not by BlockClosure, eg raiseErrorIfNotContext, which I suppose could be implemented in Object to raise an error.

Reply to this email directly or view it on GitHub:
You are receiving this because you are subscribed to this thread.

Message ID: <OpenSmalltalk/opensmalltalk-vm/issues/654/1251223035 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20220919/2934d112/attachment.html>

More information about the Vm-dev mailing list