Spaces:
Running
Running
File size: 345 Bytes
8f3f8db |
1 2 3 4 5 6 7 8 9 10 11 |
private
with: argument retry: retryBlock
| error |
(error := self primGetError) ifNil: [^ self error: 'JSBridge error'].
(error beginsWith: 'asJSArgument') ifTrue: [
^retryBlock value: argument asJSArgument].
(error beginsWith: 'CallbackSemaphore') ifTrue: [
self class initCallbacks.
^retryBlock value: argument].
self error: error.
|