crash inside Error.isCanceled (instance of #649)
#1275
Replies: 5 comments
-
|
Not really sure what to say except either:
As far as I know our code is legal Swift that shouldn’t crash. |
Beta Was this translation helpful? Give feedback.
-
|
It actually isn't? |
Beta Was this translation helpful? Give feedback.
-
|
If you can find a line of code in PromiseKit that is illegal we will correct it. As it stands you are calling |
Beta Was this translation helpful? Give feedback.
-
|
I mean, it looks like it was a bit of the mystery to you, so, I decided to report one possible source of the issue 🤷♂️ As to my attempts to find the source of the issue (which was that NSError() in my experiments), I did not found a workaround before I found the source of troubles. And frankly, I don't see how one could be possible. Your code should work, this the a legal way to do things. |
Beta Was this translation helpful? Give feedback.
-
|
K, thanks. This is the issue tracker, so if it's not a bug I will move this to the discussions board. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Following request to open new issue left in issue #649
I caused this issue by following code:
for whatever reason, swift allows to create empty
NSError(frankly, looks like a bug, there is no empty constructor defined for NSError in Swift)version: 6.13.1 installed using CocoaPods
Beta Was this translation helpful? Give feedback.
All reactions