René's URL Explorer Experiment


Title: fix: unwrap Proxy receivers and arguments before Java dispatch by edusperoni · Pull Request #2061 · NativeScript/android · GitHub

Open Graph Title: fix: unwrap Proxy receivers and arguments before Java dispatch by edusperoni · Pull Request #2061 · NativeScript/android

X Title: fix: unwrap Proxy receivers and arguments before Java dispatch by edusperoni · Pull Request #2061 · NativeScript/android

Description: Description Java object wrappers wrapped in a JS Proxy — which is what Vue 3's reactive() does to anything stored in component data() — expose no internal fields and no creation context, so the runtime could not find the Java object behind them. Reproduced on main with a bare new Proxy(new java.lang.StringBuilder(), {}): Call through a Proxy Before proxy.append("x") process abort: # Fatal error in v8::Object::GetInternalField() / Internal field out of bounds (MetadataNode::MethodCallback reads CallSuper off info.This()) any private-value lookup on a Proxy (V8GetPrivateValue/V8SetPrivateValue) process abort in GetCreationContext().ToLocalChecked() — a Proxy never has a creation context Vue 3 users have been working around this with markRaw/toRaw. Changes ObjectManager::UnwrapProxy follows Proxy-of-Proxy chains to the target (null when revoked). GetJSInstanceInfo — and therefore every GetJavaObjectByJsObject caller (arg converters, FieldAccessor, ArrayElementAccessor, instanceof, Interop, NativeScriptException, ArrayHelper) — resolves through it. Method, field, super, class and null accessors dispatch on the Proxy target exactly as on a direct receiver. A revoked Proxy, or one whose target is not a Java object for an instance member, throws a catchable TypeError. CallSuper is read only from objects that actually carry the field, so a plain object as this now throws the existing "no Java counterpart" error instead of aborting. JsArgConverter, JsArgToArrayConverter, JSToJavaConverter and MethodCache::GetType marshal the target of a Proxy argument, so proxied Java objects and proxied JS arrays (and their elements) convert as their targets do; a revoked Proxy argument is a conversion error. Implementation objects passed to extend() / interface constructors are unwrapped. GetCreationContextOrCurrent replaces every GetCreationContext(...).ToLocalChecked(); Symbol.hasInstance gets the standard try/catch → ReThrowToV8; URLImpl::GetPointer checks the internal-field count first. Proxy traps are consulted only for the JS-side lookup; the Java call runs on the target. Does your commit message include the wording below to reference a specific issue in this repo? No linked issue (reported through nativescript-vue; root-caused in the runtime). Related Pull Requests iOS counterpart with identical semantics: NativeScript/ios#485 Does your pull request have unit tests? Yes — test-app/app/src/main/assets/app/tests/testProxyReceivers.js, 16 specs (instance/trap/nested/static receivers, public field get/set, string coercion, proxied object/array/element arguments, array element assignment, revoked receiver and argument, non-Java target, plain-object receiver, instanceof, extended-class override + super). Full suite on the emulator: 1258 passed / 0 failed (main: 1242 / 0). Shared-submodule versions of these specs can follow once both runtimes land. Summary by CodeRabbit Bug Fixes Improved support for Java objects and classes accessed through JavaScript Proxies, including method calls, field access, type checks, and passing proxied values and arrays to Java. Revoked or incompatible Proxies now produce errors instead of crashes or unexpected behavior. Improved reliability when working with objects that lack an available creation context. Releasing an extended Java object now also invalidates its associated super object, whether release starts from the instance or super. Tests Added coverage for Proxy behavior, array access, error handling, and releasing extended Java objects.

Open Graph Description: Description Java object wrappers wrapped in a JS Proxy — which is what Vue 3's reactive() does to anything stored in component data() — expose no internal fields and no creation context, so the...

X Description: Description Java object wrappers wrapped in a JS Proxy — which is what Vue 3's reactive() does to anything stored in component data() — expose no internal fields and no creation context, so...

Opengraph URL: https://github.com/NativeScript/android/pull/2061

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b4be5b99-cfc0-60b7-cac9-1a36851841f1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCA94:157C65:189A2F8:20D3F8B:6B014DDD
html-safe-noncefcc1997feecf3499e0461ce672fa5371e304ec02de17b5fb0769b5124ec23b98
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTk0OjE1N0M2NToxODlBMkY4OjIwRDNGOEI6NkIwMTREREQiLCJ2aXNpdG9yX2lkIjoiODUxMDg3NDE0NTc3NTUwNDg2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca3436c769855f7f579ec62cf07a784212710fa170fd4571fd41295b9df7f6a98
hovercard-subject-tagpull_request:4710746628
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/android/pull/2061/files
twitter:imagehttps://avatars.githubusercontent.com/u/4061767?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4061767?s=400&v=4
og:image:altDescription Java object wrappers wrapped in a JS Proxy — which is what Vue 3's reactive() does to anything stored in component data() — expose no internal fields and no creation context, so the...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/android git https://github.com/NativeScript/android.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id29137950
octolytics-dimension-repository_nwoNativeScript/android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29137950
octolytics-dimension-repository_network_root_nwoNativeScript/android
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/NativeScript/android/pull/2061/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fpull%2F2061%2Ffiles
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%2Fandroid%2Fpull%2F2061%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fandroid
Reloadhttps://github.com/NativeScript/android/pull/2061/files
Reloadhttps://github.com/NativeScript/android/pull/2061/files
Reloadhttps://github.com/NativeScript/android/pull/2061/files
NativeScripthttps://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Codehttps://github.com/NativeScript/android
Issues106 (106)https://github.com/NativeScript/android/issues
Pull requests25 (25)https://github.com/NativeScript/android/pulls
Actionshttps://github.com/NativeScript/android/actions
Projectshttps://github.com/NativeScript/android/projects
Wikihttps://github.com/NativeScript/android/wiki
Security and qualityhttps://github.com/NativeScript/android/security
Insightshttps://github.com/NativeScript/android/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
edusperonihttps://github.com/edusperoni
mainhttps://github.com/NativeScript/android/tree/main
fix/proxy-receivershttps://github.com/NativeScript/android/tree/fix/proxy-receivers
Conversation 10 https://github.com/NativeScript/android/pull/2061
Commits 7 https://github.com/NativeScript/android/pull/2061/commits
Checks 7 https://github.com/NativeScript/android/pull/2061/checks
Files changed https://github.com/NativeScript/android/pull/2061/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2061/files
fix: unwrap Proxy receivers and arguments before Java dispatch https://github.com/NativeScript/android/pull/2061/files#top
Show all changes 7 commits https://github.com/NativeScript/android/pull/2061/files
d622354 fix(runtime): unwrap Proxy receivers and arguments before Java dispatch edusperoni Oct 1, 2026 https://github.com/NativeScript/android/pull/2061/commits/d62235471df85e6b718933f4c4e43157b307119b
99f02e0 fix(runtime): bound converter error messages and fail loudly on a rev… edusperoni Oct 12, 2026 https://github.com/NativeScript/android/pull/2061/commits/99f02e00b519cd4e405f8f9128f8fe7eef5d88fb
4ad0d77 fix(runtime): read JavaScript-backed Proxies through their traps edusperoni Oct 12, 2026 https://github.com/NativeScript/android/pull/2061/commits/4ad0d772f84b5fdf1c79b997acf6125a29c67355
331791e fix(runtime): clone the JsInfo field from the object that owns it edusperoni Oct 12, 2026 https://github.com/NativeScript/android/pull/2061/commits/331791e87cc22af2b1bdfbb5c09bd79d9353e9df
e3634fe fix(runtime): release the native counterpart on the object that owns … edusperoni Oct 12, 2026 https://github.com/NativeScript/android/pull/2061/commits/e3634fe8fbe1ffb8eaffe1355587da3b47e3fa18
2209816 fix(runtime): release an instance and its super object together edusperoni Oct 12, 2026 https://github.com/NativeScript/android/pull/2061/commits/2209816067be19e41a2f8d52a1b71b902f2474bf
86c5574 fix(runtime): track super aliases on the object that owns the link edusperoni Oct 12, 2026 https://github.com/NativeScript/android/pull/2061/commits/86c55744dfbdb25afe45897c444c7a799c261214
Clear filters https://github.com/NativeScript/android/pull/2061/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2061/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2061/files
mainpage.js https://github.com/NativeScript/android/pull/2061/files#diff-b7fd6c22bfc29391e9e3ed935d6c6194b1ad595c7592690229952b5ddb99c0d5
testProxyReceivers.js https://github.com/NativeScript/android/pull/2061/files#diff-2bbe23d3f47ce82e1fcd51192ee69d8da06134ee508980d9bc5aded29edaf1eb
testReleaseNativeCounterpart.js https://github.com/NativeScript/android/pull/2061/files#diff-8ea697f5acd886bc27fbe34057cca323d884a113d2bce30a4902eb8bd7d5d719
CallbackHandlers.cpp https://github.com/NativeScript/android/pull/2061/files#diff-a784229ab7689cd9ce3d502557091158b2943269fad47c1891a15a07c355500e
FieldAccessor.cpp https://github.com/NativeScript/android/pull/2061/files#diff-5e991aad04b31c0e151e4adbed673d0ce073d20e3ce3050c59f864907f96bccf
JsArgConverter.cpp https://github.com/NativeScript/android/pull/2061/files#diff-9b41f905739990783e7f543f4c38aab34593873cf03762c959d6c3c7b6e991b7
JsArgConverter.h https://github.com/NativeScript/android/pull/2061/files#diff-bdd1e3debf725d5c60ef05e04e14346e55e103c6650314a49c83bf3d0c40cce6
JsArgToArrayConverter.cpp https://github.com/NativeScript/android/pull/2061/files#diff-2893b81a974ae0a84357d112dd872c8c7f3f3c74342ed15f25596e8f928e6ebf
JsArgToArrayConverter.h https://github.com/NativeScript/android/pull/2061/files#diff-a313d4c750dacd3aaa7f3bb916231a747eb99b025e098fb677714789f1c32252
MetadataNode.cpp https://github.com/NativeScript/android/pull/2061/files#diff-6f6c5b64f60875e24b75b8a21b3164f114822aa7e5add5755f072f36403f7f8b
MethodCache.cpp https://github.com/NativeScript/android/pull/2061/files#diff-a66a356aeaaeaeb65c73d7d5cec58ad7f02506b4bae581ec8b8c03de93a682b9
NumericCasts.cpp https://github.com/NativeScript/android/pull/2061/files#diff-25c9bd49693c635de1cb8fb71c55fa3b985ee49f4eec70c13210c78862ca1a61
ObjectManager.cpp https://github.com/NativeScript/android/pull/2061/files#diff-0591ab8dc271af7e8ef11fabf0642e44b932f38003bd07a3696de149a02b2c9b
ObjectManager.h https://github.com/NativeScript/android/pull/2061/files#diff-d491cf1566875df8740b3e9d732ac891286a776623aad17b249b36781ac7047d
URLImpl.cpp https://github.com/NativeScript/android/pull/2061/files#diff-52085b77421778b81a24783e9f4ff4a6a93ea6fc5c7664e55d5efaf3e6b122e1
V8GlobalHelpers.cpp https://github.com/NativeScript/android/pull/2061/files#diff-5308898b177c89b88359a383b6949a600174634b0ddb8bc064b682676c239020
V8GlobalHelpers.h https://github.com/NativeScript/android/pull/2061/files#diff-6cc5ccc306e93d633282f5e6ee0a3658f88019263b9078b642c86eb942c0dcf7
JSToJavaConverter.cpp https://github.com/NativeScript/android/pull/2061/files#diff-37fa678bfbd89c41201fb6ec4e5478d8ba38e285984229f8160f7fffcc991c83
JSToJavaConverter.h https://github.com/NativeScript/android/pull/2061/files#diff-d549b378d1bfc37834219fd726f2fa3fa1455a32dba41c76071e69e624b99254
test-app/app/src/main/assets/app/mainpage.jshttps://github.com/NativeScript/android/pull/2061/files#diff-b7fd6c22bfc29391e9e3ed935d6c6194b1ad595c7592690229952b5ddb99c0d5
View file https://github.com/NativeScript/android/blob/86c55744dfbdb25afe45897c444c7a799c261214/test-app/app/src/main/assets/app/mainpage.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2061/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2061/files#diff-b7fd6c22bfc29391e9e3ed935d6c6194b1ad595c7592690229952b5ddb99c0d5
https://github.com/NativeScript/android/pull/2061/files#diff-b7fd6c22bfc29391e9e3ed935d6c6194b1ad595c7592690229952b5ddb99c0d5
test-app/app/src/main/assets/app/tests/testProxyReceivers.jshttps://github.com/NativeScript/android/pull/2061/files#diff-2bbe23d3f47ce82e1fcd51192ee69d8da06134ee508980d9bc5aded29edaf1eb
View file https://github.com/NativeScript/android/blob/86c55744dfbdb25afe45897c444c7a799c261214/test-app/app/src/main/assets/app/tests/testProxyReceivers.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2061/{{ revealButtonHref }}
test-app/app/src/main/assets/app/tests/testReleaseNativeCounterpart.jshttps://github.com/NativeScript/android/pull/2061/files#diff-8ea697f5acd886bc27fbe34057cca323d884a113d2bce30a4902eb8bd7d5d719
View file https://github.com/NativeScript/android/blob/86c55744dfbdb25afe45897c444c7a799c261214/test-app/app/src/main/assets/app/tests/testReleaseNativeCounterpart.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2061/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2061/files#diff-8ea697f5acd886bc27fbe34057cca323d884a113d2bce30a4902eb8bd7d5d719
https://github.com/NativeScript/android/pull/2061/files#diff-8ea697f5acd886bc27fbe34057cca323d884a113d2bce30a4902eb8bd7d5d719
test-app/runtime/src/main/cpp/CallbackHandlers.cpphttps://github.com/NativeScript/android/pull/2061/files#diff-a784229ab7689cd9ce3d502557091158b2943269fad47c1891a15a07c355500e
View file https://github.com/NativeScript/android/blob/86c55744dfbdb25afe45897c444c7a799c261214/test-app/runtime/src/main/cpp/CallbackHandlers.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2061/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2061/files#diff-a784229ab7689cd9ce3d502557091158b2943269fad47c1891a15a07c355500e
https://github.com/NativeScript/android/pull/2061/files#diff-a784229ab7689cd9ce3d502557091158b2943269fad47c1891a15a07c355500e
https://github.com/NativeScript/android/pull/2061/files#diff-a784229ab7689cd9ce3d502557091158b2943269fad47c1891a15a07c355500e
https://github.com/NativeScript/android/pull/2061/files#diff-a784229ab7689cd9ce3d502557091158b2943269fad47c1891a15a07c355500e
test-app/runtime/src/main/cpp/FieldAccessor.cpphttps://github.com/NativeScript/android/pull/2061/files#diff-5e991aad04b31c0e151e4adbed673d0ce073d20e3ce3050c59f864907f96bccf
View file https://github.com/NativeScript/android/blob/86c55744dfbdb25afe45897c444c7a799c261214/test-app/runtime/src/main/cpp/FieldAccessor.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2061/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2061/files#diff-5e991aad04b31c0e151e4adbed673d0ce073d20e3ce3050c59f864907f96bccf
https://github.com/NativeScript/android/pull/2061/files#diff-5e991aad04b31c0e151e4adbed673d0ce073d20e3ce3050c59f864907f96bccf
Please reload this pagehttps://github.com/NativeScript/android/pull/2061/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2061/files
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.