| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2d606d7f-f698-efbf-c21c-3683c39b08ff |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 91BC:A1AAC:187DE3:228D53:6B0055A1 |
| html-safe-nonce | ab6228b70b12a875dc647b0b653557c3cd0c32e4c414aaa51a9bb23a45e01cce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUJDOkExQUFDOjE4N0RFMzoyMjhENTM6NkIwMDU1QTEiLCJ2aXNpdG9yX2lkIjoiNTA0NTY4NjI3OTcwNzI1MjgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b7680addf8643e77f2fc770ca30fade8eee1f600fbaa4b252cf81d50fc74b354 |
| hovercard-subject-tag | pull_request:5051689251 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
| twitter:image | https://avatars.githubusercontent.com/u/108231307?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/108231307?s=400&v=4 |
| og:image:alt | Fixes #3051.
Changes proposed in this pull request:
Preserve the receiver and index of compound indexed assignments so expressions with side effects are evaluated once.
Store the assigned value be... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 105138356 |
| octolytics-dimension-repository_nwo | AssemblyScript/assemblyscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105138356 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/assemblyscript |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/AssemblyScript/assemblyscript/pull/3056/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fpull%2F3056%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fpull%2F3056%2Ffiles |
| Sign up | https://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=AssemblyScript%2Fassemblyscript |
| Reload | https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
| Reload | https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
| Reload | https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
| AssemblyScript | https://github.com/AssemblyScript |
| assemblyscript | https://github.com/AssemblyScript/assemblyscript |
| Code | https://github.com/AssemblyScript/assemblyscript |
| Issues196 (196) | https://github.com/AssemblyScript/assemblyscript/issues |
| Pull requests24 (24) | https://github.com/AssemblyScript/assemblyscript/pulls |
| Actions | https://github.com/AssemblyScript/assemblyscript/actions |
| Wiki | https://github.com/AssemblyScript/assemblyscript/wiki |
| Security and quality | https://github.com/AssemblyScript/assemblyscript/security |
| Insights | https://github.com/AssemblyScript/assemblyscript/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FAssemblyScript%2Fassemblyscript%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FAssemblyScript%2Fassemblyscript%2Fissues%2Fnew%2Fchoose |
| dajiaohuang | https://github.com/dajiaohuang |
| AssemblyScript:main | https://github.com/AssemblyScript/assemblyscript/tree/main |
| dajiaohuang:fix/issue-3051-compound-indexed-assignment | https://github.com/dajiaohuang/assemblyscript/tree/fix/issue-3051-compound-indexed-assignment |
|
Conversation
0
| https://github.com/AssemblyScript/assemblyscript/pull/3056 |
|
Commits
1
| https://github.com/AssemblyScript/assemblyscript/pull/3056/commits |
|
Checks
14
| https://github.com/AssemblyScript/assemblyscript/pull/3056/checks |
|
Files changed
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
| Please reload this page | https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
|
Fix compound indexed assignment evaluation
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#top |
|
Show all changes
1 commit
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
|
139c9c1
Fix compound indexed assignment evaluation
dajiaohuang Oct 28, 2026
| https://github.com/AssemblyScript/assemblyscript/pull/3056/commits/139c9c186638cea0cea83c85a052426dc54ae3c6 |
|
Clear filters
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
| Please reload this page | https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
| Please reload this page | https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
|
NOTICE
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-dfb14fbb9e7d095209ec4cfd621069437bf9c442ff9de9d4ce889781bd0fefcf |
|
compiler.ts
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
resolver.ts
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-0d2f46f3b329944abf82b98bdebe5220e48742c8868011ed9b35b592f72b0fed |
|
issue-3051.debug.wat
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-69a557e0d6c44ca0bbc26bbd303cffddf11c47cce8a4b804e412cc7e836cf87d |
|
issue-3051.release.wat
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-95b49975e1a11f5ff5b15817a6b318f6afbf8b81139a34fc9f7b245a0e5c02f2 |
|
issue-3051.ts
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-a2fcc39a28349f26b1d37e9a75910607fae5cad68423316a453c2df7b03e32b9 |
|
resolve-elementaccess.debug.wat
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-4f9cf19aa8f939fd8dcef757df80e4bd530beb57229a79e859f0af0faed5dc44 |
|
resolve-elementaccess.release.wat
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-c9e11c59ba9f3e7a2fb4162b70168da852ca0e900d7a28c267c5ef1a67cbbc70 |
| NOTICE | https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-dfb14fbb9e7d095209ec4cfd621069437bf9c442ff9de9d4ce889781bd0fefcf |
|
View file
| https://github.com/AssemblyScript/assemblyscript/blob/139c9c186638cea0cea83c85a052426dc54ae3c6/NOTICE |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/AssemblyScript/assemblyscript/pull/3056/{{ revealButtonHref }} |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-dfb14fbb9e7d095209ec4cfd621069437bf9c442ff9de9d4ce889781bd0fefcf |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-dfb14fbb9e7d095209ec4cfd621069437bf9c442ff9de9d4ce889781bd0fefcf |
| src/compiler.ts | https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
View file
| https://github.com/AssemblyScript/assemblyscript/blob/139c9c186638cea0cea83c85a052426dc54ae3c6/src/compiler.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/AssemblyScript/assemblyscript/pull/3056/{{ revealButtonHref }} |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-041bb58b49fbc5e7fdf9b8d09f0f0ae8d524d727947bcfa3e3d1c91b8a35aeee |
| src/resolver.ts | https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-0d2f46f3b329944abf82b98bdebe5220e48742c8868011ed9b35b592f72b0fed |
|
View file
| https://github.com/AssemblyScript/assemblyscript/blob/139c9c186638cea0cea83c85a052426dc54ae3c6/src/resolver.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/AssemblyScript/assemblyscript/pull/3056/{{ revealButtonHref }} |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-0d2f46f3b329944abf82b98bdebe5220e48742c8868011ed9b35b592f72b0fed |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-0d2f46f3b329944abf82b98bdebe5220e48742c8868011ed9b35b592f72b0fed |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-0d2f46f3b329944abf82b98bdebe5220e48742c8868011ed9b35b592f72b0fed |
|
| https://github.com/AssemblyScript/assemblyscript/pull/3056/files#diff-0d2f46f3b329944abf82b98bdebe5220e48742c8868011ed9b35b592f72b0fed |
| Please reload this page | https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
| Please reload this page | https://github.com/AssemblyScript/assemblyscript/pull/3056/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |