Skip to content

Commit 486fd72

Browse files
committed
docs(runtime): JS-replaced retainCount reached through a native [super retainCount] is unsupported
1 parent 18d7168 commit 486fd72

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎NativeScript/runtime/ObjectManager.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ class ObjectManager {
129129
// swizzled-prefixed alias. Null for NSTimer.alloc()'s placeholder, whose
130130
// -retainCount does not return, and for classes without a -retainCount.
131131
// Walks method lists, so callers cache the result per class.
132+
// Unsupported: a native override that messages [super retainCount] still
133+
// reaches a JS replacement on an ancestor, which then runs where JS may not.
132134
static IMP NativeRetainCountImp(Class cls);
133135

134136
private:

0 commit comments

Comments
 (0)