mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
[ReactNative] Call invalidate when executor is deallocated
This commit is contained in:
parent
679399289d
commit
50c9c616fb
@ -218,7 +218,7 @@ static NSError *RCTNSErrorFromJSError(JSContextRef context, JSValueRef jsError)
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
RCTAssert(!self.valid, @"must call -invalidate before -dealloc");
|
||||
[self invalidate];
|
||||
}
|
||||
|
||||
- (void)executeJSCall:(NSString *)name
|
||||
|
Loading…
x
Reference in New Issue
Block a user