Skip to content

Commit

Permalink
Moving method
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep committed Sep 6, 2023
1 parent bb20d6e commit 69cec7c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/MethodProxies/ProxyInstrumentationDeactivator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,19 @@ ProxyInstrumentationDeactivator >> handler: anObject [

handler := anObject
]

{ #category : #evaluating }
ProxyInstrumentationDeactivator >> value [

<noInstrumentation>
"Slow path, an exception or a non local return happened"
| wasMeta me |
thisProcess shiftLevelUp.

me := thisContext findContextSuchThat: [ :ctx | ctx isUnwindContext ].
wasMeta := me tempNamed: 'wasMeta'.
handler aboutToReturnWithReceiver: me receiver arguments: me arguments.
thisProcess shiftLevelDown.
wasMeta ifTrue: [ thisProcess shiftLevelDown ].

]

0 comments on commit 69cec7c

Please sign in to comment.