Skip to content

Commit

Permalink
Handle the two execution contexts present now in GemStone [feenkcom/g…
Browse files Browse the repository at this point in the history
…toolkit/#3942]
  • Loading branch information
chisandrei committed Aug 6, 2024
1 parent 2dff535 commit 31fe75c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Class {
#name : #GtpoGtGemStoneEvaluationExceptionContext,
#superclass : #GtpoGtGemStoneEvaluationContext,
#category : #'GToolkit-GemStone-Pharo-Proxies'
}

{ #category : #accessing }
GtpoGtGemStoneEvaluationExceptionContext class >> remoteClassName [
^ #GtGemStoneEvaluationExceptionContext
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Class {
#name : #GtpoGtGemStoneEvaluationExecutionContext,
#superclass : #GtpoGtGemStoneEvaluationContext,
#category : #'GToolkit-GemStone-Pharo-Proxies'
}

{ #category : #accessing }
GtpoGtGemStoneEvaluationExecutionContext class >> remoteClassName [
^ #GtGemStoneEvaluationExecutionContext
]

{ #category : #accessing }
GtpoGtGemStoneEvaluationExecutionContext >> wait [
^ self proxyPerform: #wait
]
3 changes: 2 additions & 1 deletion src/GToolkit-GemStone-Pharo/RsrPromise.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ RsrPromise >> canHandleSpecificDebugger [
RsrPromise >> isGtEvaluationException [
"Answer a boolean indicating if the result is an evaluation exception"

^ self isFulfilled and: [ value class = GtpoGtGemStoneEvaluationContext ]
^ self isFulfilled and: [ (value class = GtpoGtGemStoneEvaluationContext)
or: [ value class = GtpoGtGemStoneEvaluationExceptionContext ] ]
]

0 comments on commit 31fe75c

Please sign in to comment.