René's URL Explorer Experiment


Title: `this.super` keeps a raw pointer to the receiver's wrapper and can outlive it · Issue #568 · NativeScript/ios · GitHub

Open Graph Title: `this.super` keeps a raw pointer to the receiver's wrapper and can outlive it · Issue #568 · NativeScript/ios

X Title: `this.super` keeps a raw pointer to the receiver's wrapper and can outlive it · Issue #568 · NativeScript/ios

Description: Summary this.super on an .extend() class returns a new object on every access (ClassBuilder::SuperAccessorGetterCallback). Its internal field is a copy of the receiver's: the External that holds the receiver's ObjCDataWrapper*. The alias...

Open Graph Description: Summary this.super on an .extend() class returns a new object on every access (ClassBuilder::SuperAccessorGetterCallback). Its internal field is a copy of the receiver's: the External that holds th...

X Description: Summary this.super on an .extend() class returns a new object on every access (ClassBuilder::SuperAccessorGetterCallback). Its internal field is a copy of the receiver's: the External that hold...

Opengraph URL: https://github.com/NativeScript/ios/issues/568

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`this.super` keeps a raw pointer to the receiver's wrapper and can outlive it","articleBody":"## Summary\n\n`this.super` on an `.extend()` class returns a new object on every access (`ClassBuilder::SuperAccessorGetterCallback`). Its internal field is a copy of the receiver's: the `External` that holds the receiver's `ObjCDataWrapper*`. The alias does not keep the receiver alive, and nothing tells it when that wrapper is deleted.\n\nIf JS keeps the alias longer than the receiver's wrapper lives, a call through it reads a deleted wrapper.\n\n## How the wrapper goes away under a live alias\n\n1. **The receiver is collected.** The alias holds no reference to it:\n\n   ```js\n   let s = obj.super;\n   obj = null;\n   // after a collection, obj's finalizer deletes the wrapper\n   s.description; // reads the deleted wrapper\n   ```\n\n   `ObjectManager::DisposeValue` skips the alias itself (\"Do not dispose the ObjCWrapper contained in a super instance\"), so the alias survives with the stale pointer.\n2. **`__releaseNativeCounterpart(obj)`** deletes the wrapper right away, with the same result for an alias taken earlier.\n3. **A JS method run by `-dealloc`** (after #564). The receiver gets a borrowed wrapper that is detached and deleted when the call returns. `this` then reads as released, but an alias saved from that call still points at the deleted wrapper:\n\n   ```js\n   const Keeper = TNSApi.extend({\n     methodCalledInDealloc() { saved = this.super; },\n   });\n   ```\n\n   Before #564 the wrapper stayed in this case but the object was already freed, so the alias was unsafe there too.\n\n## Suggested fix\n\nThe alias should find the wrapper through its receiver when it is used, not copy the pointer when it is created. For example, it can hold the receiver and have the wrapper lookup follow it. Then:\n\n- a receiver that was released or detached reads as released through the alias, with the existing released-object error;\n- the alias keeps its receiver alive for as long as JS can reach the alias.\n\n## Tests to add\n\n- An alias taken from a live object, used after the object's wrapper is released with `__releaseNativeCounterpart`: it reports the object as released.\n- An alias kept after its receiver is dropped and several collections ran: it still works (the receiver is kept alive) or reports released, but never touches freed memory. Run under AddressSanitizer.\n- An alias saved from a JS method run by `-dealloc`: it reports released.\n\nFound by reading the code paths; not reproduced yet.\n","author":{"url":"https://github.com/edusperoni","@type":"Person","name":"edusperoni"},"datePublished":"2026-11-14T18:30:27Z","url":"https://github.com/NativeScript/ios/issues/568"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f970ed2b-fc38-5796-9c71-127fb809219f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8052:1F65:D3DDB4:10CAD2A:6B015BC8
html-safe-noncec921fc9a192fb03284ac0f22399254e2eefd797e8238b53e609d6f8316adbab2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDUyOjFGNjU6RDNEREI0OjEwQ0FEMkE6NkIwMTVCQzgiLCJ2aXNpdG9yX2lkIjoiNzgwNTA4NTg0MjIyMDg2NjUwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd392a53ba18e08c220f8a452077e0d979887538391c67c57f57d6cafa95c6c62
hovercard-subject-tagissue:6394289951
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/ios/568/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ea77884175bd5015e89aa876d6f6e766a9a41478f1454103a9aa40a752a1de7b/NativeScript/ios/issues/568
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ea77884175bd5015e89aa876d6f6e766a9a41478f1454103a9aa40a752a1de7b/NativeScript/ios/issues/568
og:image:altSummary this.super on an .extend() class returns a new object on every access (ClassBuilder::SuperAccessorGetterCallback). Its internal field is a copy of the receiver's: the External that holds th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameedusperoni
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/ios git https://github.com/NativeScript/ios.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id172934359
octolytics-dimension-repository_nwoNativeScript/ios
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id172934359
octolytics-dimension-repository_network_root_nwoNativeScript/ios
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/ios/issues/568#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fios%2Fissues%2F568
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fios%2Fissues%2F568
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fios
Reloadhttps://github.com/NativeScript/ios/issues/568
Reloadhttps://github.com/NativeScript/ios/issues/568
Reloadhttps://github.com/NativeScript/ios/issues/568
NativeScripthttps://github.com/NativeScript
ioshttps://github.com/NativeScript/ios
Codehttps://github.com/NativeScript/ios
Issues56 (56)https://github.com/NativeScript/ios/issues
Pull requests42 (42)https://github.com/NativeScript/ios/pulls
Actionshttps://github.com/NativeScript/ios/actions
Projectshttps://github.com/NativeScript/ios/projects
Security and qualityhttps://github.com/NativeScript/ios/security
Insightshttps://github.com/NativeScript/ios/insights
https://github.com/NativeScript/ios
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/ios/issues/568
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/ios/issues/568
#570https://github.com/NativeScript/ios/pull/570
this.super keeps a raw pointer to the receiver's wrapper and can outlive ithttps://github.com/NativeScript/ios/issues/568#top
#570https://github.com/NativeScript/ios/pull/570
https://github.com/edusperoni
edusperonihttps://github.com/edusperoni
on Nov 14, 2026https://github.com/NativeScript/ios/issues/568#issue-6394289951
fix(runtime): release wrappers made for JS methods called from native code #564https://github.com/NativeScript/ios/pull/564
fix(runtime): release wrappers made for JS methods called from native code #564https://github.com/NativeScript/ios/pull/564
edusperonihttps://github.com/edusperoni
completedhttps://github.com/NativeScript/ios/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#570https://github.com/NativeScript/ios/pull/570
on Nov 15, 2026https://github.com/NativeScript/ios/issues/568#event-36202319727
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/ios/issues/568
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/ios/issues/568
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.