[squeak-smalltalk/squeak-object-memory] `runUntilErrorOrReturnFrom:` does not handle `mustBeBoolean` correctly (Issue #163)

Christoph Thiede via Squeak-dev <[email protected]> Wed, 29 Jul 2026 15:43:21 -0700
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <squeak-smalltalk/squeak-object-memory/issues/[email protected]>
--===============5547284293068494682==
Content-Type: multipart/alternative;
 boundary="--==_mimepart_6a6a82097c5f2_f21140545413";
 charset=UTF-8
Content-Transfer-Encoding: 7bit


----==_mimepart_6a6a82097c5f2_f21140545413
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

LinqLover created an issue (squeak-smalltalk/squeak-object-memory#163)

STR:

- Debug it: `self ifTrue: [1]`
- Select DoIt context
- Enable bytecode mode
- Step over the jump instruction

Expected: Halts in `Object>>#mustBeBooleanIn:`

Actual: Halts in `Context(Object)>>error: 'Where''s the jump??'`

With stepThrough instead of stepOver, this does not happen, thus I suppose this is caused by `runUntilErrorOrReturnFrom:`. :-)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/squeak-smalltalk/squeak-object-memory/issues/163
You are receiving this because you are subscribed to this thread.

Message ID: <squeak-smalltalk/squeak-object-memory/issues/[email protected]>
----==_mimepart_6a6a82097c5f2_f21140545413
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div style=3D"display: flex; flex-wrap: wrap; white-space: pre-wrap; alig=
n-items: center; "><img height=3D"20" width=3D"20" style=3D"border-radius=
:50%; margin-right: 4px;" decoding=3D"async" src=3D"https://avatars.githu=
busercontent.com/u/38782922?s=3D20&amp;v=3D4" /><strong>LinqLover</strong=
> created an issue <a href=3D"https://github.com/squeak-smalltalk/squeak-=
object-memory/issues/163">(squeak-smalltalk/squeak-object-memory#163)</a>=
</div>
<p dir=3D"auto">STR:</p>
<ul dir=3D"auto">
<li>Debug it: <code class=3D"notranslate">self ifTrue: [1]</code></li>
<li>Select DoIt context</li>
<li>Enable bytecode mode</li>
<li>Step over the jump instruction</li>
</ul>
<p dir=3D"auto">Expected: Halts in <code class=3D"notranslate">Object&gt;=
&gt;#mustBeBooleanIn:</code></p>
<p dir=3D"auto">Actual: Halts in <code class=3D"notranslate">Context(Obje=
ct)&gt;&gt;error: 'Where''s the jump??'</code></p>
<p dir=3D"auto">With stepThrough instead of stepOver, this does not happe=
n, thus I suppose this is caused by <code class=3D"notranslate">runUntilE=
rrorOrReturnFrom:</code>. :-)</p>

<p style=3D"font-size:small;-webkit-text-size-adjust:none;color:#666;">&m=
dash;<br />Reply to this email directly, <a href=3D"https://github.com/sq=
ueak-smalltalk/squeak-object-memory/issues/163?email_source=3Dnotificatio=
ns&amp;email_token=3DBFYAK6LYVOOPEAEN7JHTC6L5HJ4YTA5CNFSL4Z3JMQ5C6L3HNF2C=
22DVMIXUS43TOVSS6NJQGE2DCOBXG4YTPJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KY=
ZTPN52GK4S7MNWGSY3L">view it on GitHub</a>, or <a href=3D"https://github.=
com/notifications/unsubscribe-auth/BFYAK6NVYZURGGT67GSWHZL5HJ4YTAVCNFSNUA=
BFKJSXA33TNF2G64TZHM2DKNBYHA3TANRUHNEXG43VMU5TKMBRGQYTQNZXGE32C5QC">unsub=
scribe</a>.<br />Triage notifications, keep track of coding agent tasks a=
nd review pull requests on the go with GitHub Mobile for <a href=3D"https=
://github.com/notifications/mobile/ios/BFYAK6NWZL7XCSNMFCHMLBT5HJ4YTA5CNF=
SL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NJQGE2DCOBXG4YTPJTSMVQXG33OVJZXKYTTMNZ=
GSYTFMSSWK5TFNZ2KUZTPN52GK4S7NFXXG">iOS</a> and <a href=3D"https://github=
.com/notifications/mobile/android/BFYAK6PEPLIISBGGZUCV5JD5HJ4YTA5CNFSL4Z3=
JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NJQGE2DCOBXG4YTPJTSMVQXG33OVJZXKYTTMNZGSYTF=
MSSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA">Android</a>. Download it today!
<br />You are receiving this because you are subscribed to this thread.<i=
mg src=3D"https://github.com/notifications/beacon/BFYAK6N4UPM7DRGKPXFLN6T=
5HJ4YTBFCNFSM6AAAAAC4QZQ65WWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3J=
MTHQAAAAAEVN43WFUZZGKYLTN5XKU43VMJZWG4TJMJSWI.gif" height=3D"1" width=3D"=
1" alt=3D"" /><span style=3D"color: transparent; font-size: 0; display: n=
one; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: =
0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span>&lt;sque=
ak-smalltalk/squeak-object-memory/issues/163</span><span>@</span><span>gi=
thub</span><span>.</span><span>com&gt;</span></span></p>

<script type=3D"application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/squeak-smalltalk/squeak-object-memory/issue=
s/163?email_source=3Dnotifications\u0026email_token=3DBFYAK6PH64EIYDJEH7N=
KNY35HJ4YTA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NJQGE2DCOBXG4YTPJTSMVQX=
G33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KWZ3NMFUWYX3DNRUWG2Y",
"url": "https://github.com/squeak-smalltalk/squeak-object-memory/issues/1=
63?email_source=3Dnotifications\u0026email_token=3DBFYAK6PH64EIYDJEH7NKNY=
35HJ4YTA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NJQGE2DCOBXG4YTPJTSMVQXG33=
OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KWZ3NMFUWYX3DNRUWG2Y",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>

----==_mimepart_6a6a82097c5f2_f21140545413--

--===============5547284293068494682==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
--===============5547284293068494682==--