Skip to content

Commit ab3f912

Browse files
committed
Fixes a minor issue in the dynamic resolution of inst vars
1 parent c1bbed2 commit ab3f912

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
*Babylonian-Core
22
bpResolveReferenceDynamically: aSymbol in: aContext
33

4-
(aContext tempNames includes: aSymbol) ifTrue: [
5-
^ aContext namedTempAt: (aContext tempNames indexOf: aSymbol)].
6-
(self class instVarNames includes: aSymbol) ifTrue: [
7-
^ self instVarNamed: aSymbol].
8-
^ (KeyNotFound key: aSymbol) signal
4+
#bpInstrumented withoutLayerDo: [
5+
(aContext tempNames includes: aSymbol) ifTrue: [
6+
^ aContext namedTempAt: (aContext tempNames indexOf: aSymbol)].
7+
({self class} , self class allSuperclasses) do: [:klass |
8+
(klass instVarNames includes: aSymbol) ifTrue: [
9+
^ self instVarNamed: aSymbol]].
10+
self halt.
11+
^ (KeyNotFound key: aSymbol) signal]

packages/Babylonian-Core.package/Object.extension/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"bpBlock:leftWith:at:" : "pre 9/25/2020 17:03",
88
"bpProfile:forProbe:inContext:" : "pre 11/29/2022 16:25",
99
"bpReplace:with:for:" : "pre 5/10/2021 09:07",
10-
"bpResolveReferenceDynamically:in:" : "pre 1/10/2023 17:46",
10+
"bpResolveReferenceDynamically:in:" : "pre 1/11/2023 10:33",
1111
"bpSnapshot" : "pre 5/10/2021 09:07",
1212
"bpTrace:forProbe:inContext:" : "pre 5/10/2021 09:07",
1313
"bpTrace:through:forProbe:inContext:" : "jb 11/29/2020 22:12",

0 commit comments

Comments
 (0)