Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions NativeScript/runtime/ClassBuilder.mm
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ void ScopeClassNameToIsolate(std::string& name, int isolateId) {
/// instances map), we unprotect the corresponding JavaScript object in order to make both
/// of them destroyable/GC-able. When the JavaScript object is GC-ed we release the native
/// counterpart as well.
void (*retain)(id, SEL) =
(void (*)(id, SEL))FindNotOverridenMethod(extendedClass, @selector(retain));
IMP newRetain = imp_implementationWithBlock(^(id self) {
id (*retain)(id, SEL) =
(id (*)(id, SEL))FindNotOverridenMethod(extendedClass, @selector(retain));
IMP newRetain = imp_implementationWithBlock(^id(id self) {
if (!isolateWrapper.IsValid()) {
return retain(self, @selector(retain));
}
Expand Down
Loading