You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will crash in objective c. However, the objective-c paradigm is that calling a method on a nil object should send a message to a nil object which is refused, thereby not executing. Therefore my expectation is that in this case we would not log "hello world."
However, PromiseKit crashes in this situation. I think this stems from the _nonnull qualifier on then, catch, and finally, but I'm not sure.
The text was updated successfully, but these errors were encountered:
This is not how it should behave in objc.
AnyPromise *promise = nil;
promise.then(^{
NSLog(@"Hello World");
});
This will crash in objective c. However, the objective-c paradigm is that calling a method on a nil object should send a message to a nil object which is refused, thereby not executing. Therefore my expectation is that in this case we would not log "hello world."
However, PromiseKit crashes in this situation. I think this stems from the _nonnull qualifier on then, catch, and finally, but I'm not sure.
The text was updated successfully, but these errors were encountered: