René's URL Explorer Experiment


Title: Compound assignment with post increment in lhs miscompiles · Issue #2730 · AssemblyScript/assemblyscript · GitHub

Open Graph Title: Compound assignment with post increment in lhs miscompiles · Issue #2730 · AssemblyScript/assemblyscript

X Title: Compound assignment with post increment in lhs miscompiles · Issue #2730 · AssemblyScript/assemblyscript

Description: Bug description Compound assignment where the left hand side is an array with a post increment index generates incorrect code. let a = new Uint32Array(1); let v = 0; a[v++] |= 1234; actually is generating something like let a = new Uint3...

Open Graph Description: Bug description Compound assignment where the left hand side is an array with a post increment index generates incorrect code. let a = new Uint32Array(1); let v = 0; a[v++] |= 1234; actually is gen...

X Description: Bug description Compound assignment where the left hand side is an array with a post increment index generates incorrect code. let a = new Uint32Array(1); let v = 0; a[v++] |= 1234; actually is gen...

Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/2730

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compound assignment with post increment in lhs miscompiles","articleBody":"### Bug description\n\nCompound assignment where the left hand side is an array with a post increment index generates incorrect code.\r\n\r\n```ts\r\nlet a = new Uint32Array(1);\r\nlet v = 0;\r\na[v++] |= 1234;\r\n```\r\nactually is generating something like\r\n```ts\r\nlet a = new Uint32Array(1);\r\nlet v = 0;\r\nlet v$0 = v;\r\nv += 1;\r\na[v$0] = a[v] | 1234;\r\n```\n\n### Steps to reproduce\n\n[Editor](https://www.assemblyscript.org/editor#IyFvcHRpbWl6ZT1zaXplJnJ1bnRpbWU9aW5jcmVtZW50YWwmbm9Bc3NlcnQmZGVidWcKZGVjbGFyZSBmdW5jdGlvbiBsb2coeDogdTMyKTogdm9pZApsZXQgYSA9IG5ldyBVaW50MzJBcnJheSgxKTsKbGV0IHYgPSAwOwphW3YrK10gfD0gMTIzNDsKbG9nKGFbMF0pOwojIWh0bWwKPHNjcmlwdCB0eXBlPSJtb2R1bGUiPgpjb25zdCBvdXRwdXQgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnb3V0cHV0JykKY29uc3QgZXhwb3J0cyA9IGF3YWl0IGluc3RhbnRpYXRlKGF3YWl0IGNvbXBpbGUoKSwgewogIG1vZHVsZTogewogICAgbG9nKGMpIHsKICAgICAgY29uc29sZS5sb2coYyk7CiAgICB9LAogIH0sCn0pCjwvc2NyaXB0Pg==)\r\n\r\nShould print `1234`, instead crashes\n\n### AssemblyScript version\n\n0.27.7","author":{"url":"https://github.com/abextm","@type":"Person","name":"abextm"},"datePublished":"2023-08-01T10:07:41Z","url":"https://github.com/AssemblyScript/assemblyscript/issues/2730"}

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:ccf7d2d6-a40d-eeb5-e38f-fe518fae73ad
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9CD0:3E987B:D49C57:11DAF81:6B005642
html-safe-nonce2278814dfe6a00853a9ee61e29ab7937b85f2a8b8045e4e22d58dfa519014f02
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0QwOjNFOTg3QjpENDlDNTc6MTFEQUY4MTo2QjAwNTY0MiIsInZpc2l0b3JfaWQiOiI3OTk0MzAwMzQxOTU1MDI2NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca0f2c02e6a0f02177542f5ea875050073721c4cef6686856b89d95b050ac9cd1
hovercard-subject-tagissue:1830918994
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/AssemblyScript/assemblyscript/2730/issue_layout
twitter:imagehttps://opengraph.githubassets.com/282e43de044bb9337d12236f3dc6737234a9b964aae8c1807a12724907ef8c3e/AssemblyScript/assemblyscript/issues/2730
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/282e43de044bb9337d12236f3dc6737234a9b964aae8c1807a12724907ef8c3e/AssemblyScript/assemblyscript/issues/2730
og:image:altBug description Compound assignment where the left hand side is an array with a post increment index generates incorrect code. let a = new Uint32Array(1); let v = 0; a[v++] |= 1234; actually is gen...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameabextm
hostnamegithub.com
expected-hostnamegithub.com
Nonef420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb
turbo-cache-controlno-preview
go-importgithub.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git
octolytics-dimension-user_id28916798
octolytics-dimension-user_loginAssemblyScript
octolytics-dimension-repository_id105138356
octolytics-dimension-repository_nwoAssemblyScript/assemblyscript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id105138356
octolytics-dimension-repository_network_root_nwoAssemblyScript/assemblyscript
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
release26e00df917aba0f128135dc073ea0c5e33a70d40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/AssemblyScript/assemblyscript/issues/2730#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fissues%2F2730
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%2FAssemblyScript%2Fassemblyscript%2Fissues%2F2730
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=AssemblyScript%2Fassemblyscript
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/2730
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/2730
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/2730
AssemblyScripthttps://github.com/AssemblyScript
assemblyscripthttps://github.com/AssemblyScript/assemblyscript
Codehttps://github.com/AssemblyScript/assemblyscript
Issues196 (196)https://github.com/AssemblyScript/assemblyscript/issues
Pull requests24 (24)https://github.com/AssemblyScript/assemblyscript/pulls
Actionshttps://github.com/AssemblyScript/assemblyscript/actions
Wikihttps://github.com/AssemblyScript/assemblyscript/wiki
Security and qualityhttps://github.com/AssemblyScript/assemblyscript/security
Insightshttps://github.com/AssemblyScript/assemblyscript/insights
https://github.com/AssemblyScript/assemblyscript
New issuehttps://github.com/login?return_to=https://github.com/AssemblyScript/assemblyscript/issues/2730
New issuehttps://github.com/login?return_to=https://github.com/AssemblyScript/assemblyscript/issues/2730
Compound assignment with post increment in lhs miscompileshttps://github.com/AssemblyScript/assemblyscript/issues/2730#top
bughttps://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/abextm
abextmhttps://github.com/abextm
on Aug 1, 2023https://github.com/AssemblyScript/assemblyscript/issues/2730#issue-1830918994
Editorhttps://www.assemblyscript.org/editor#IyFvcHRpbWl6ZT1zaXplJnJ1bnRpbWU9aW5jcmVtZW50YWwmbm9Bc3NlcnQmZGVidWcKZGVjbGFyZSBmdW5jdGlvbiBsb2coeDogdTMyKTogdm9pZApsZXQgYSA9IG5ldyBVaW50MzJBcnJheSgxKTsKbGV0IHYgPSAwOwphW3YrK10gfD0gMTIzNDsKbG9nKGFbMF0pOwojIWh0bWwKPHNjcmlwdCB0eXBlPSJtb2R1bGUiPgpjb25zdCBvdXRwdXQgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnb3V0cHV0JykKY29uc3QgZXhwb3J0cyA9IGF3YWl0IGluc3RhbnRpYXRlKGF3YWl0IGNvbXBpbGUoKSwgewogIG1vZHVsZTogewogICAgbG9nKGMpIHsKICAgICAgY29uc29sZS5sb2coYyk7CiAgICB9LAogIH0sCn0pCjwvc2NyaXB0Pg==
abextmhttps://github.com/abextm
bughttps://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3A%22bug%22
on Aug 1, 2023https://github.com/AssemblyScript/assemblyscript/issues/2730#event-9974558806
https://github.com/dcodeIO
dcodeIOhttps://github.com/dcodeIO
on Aug 1, 2023https://github.com/AssemblyScript/assemblyscript/issues/2730#issuecomment-1660034754
Changqing-JINGhttps://github.com/Changqing-JING
on Oct 17, 2023https://github.com/AssemblyScript/assemblyscript/issues/2730#event-10675573862
fix AssemblyScript#2730 ompound assignment with post increment in lhs…https://github.com/Changqing-JING/assemblyscript/commit/1748dffbae23125f967bed7f1fb4370f5f5dac5d
AssemblyScript#2730https://github.com/AssemblyScript/assemblyscript/issues/2730
https://docs.github.com/articles/closing-issues-via-commit-messages
1748dffhttps://github.com/Changqing-JING/assemblyscript/commit/1748dffbae23125f967bed7f1fb4370f5f5dac5d
fix AssemblyScript#2730 ompound assignment with post increment in lhs…https://github.com/Changqing-JING/assemblyscript/commit/f9d84417744b43c0ec8475ebc29a1eda3808e9bd
AssemblyScript#2730https://github.com/AssemblyScript/assemblyscript/issues/2730
https://docs.github.com/articles/closing-issues-via-commit-messages
f9d8441https://github.com/Changqing-JING/assemblyscript/commit/f9d84417744b43c0ec8475ebc29a1eda3808e9bd
fix AssemblyScript#2730 ompound assignment with post increment in lhs…https://github.com/Changqing-JING/assemblyscript/commit/c0b684017453321f2002e22ac4338a5224ae6b85
AssemblyScript#2730https://github.com/AssemblyScript/assemblyscript/issues/2730
https://docs.github.com/articles/closing-issues-via-commit-messages
c0b6840https://github.com/Changqing-JING/assemblyscript/commit/c0b684017453321f2002e22ac4338a5224ae6b85
fix AssemblyScript#2730 ompound assignment with post increment in lhs…https://github.com/Changqing-JING/assemblyscript/commit/f6c5238f9ab48010490ce32910277cb03a3ccf1b
AssemblyScript#2730https://github.com/AssemblyScript/assemblyscript/issues/2730
https://docs.github.com/articles/closing-issues-via-commit-messages
f6c5238https://github.com/Changqing-JING/assemblyscript/commit/f6c5238f9ab48010490ce32910277cb03a3ccf1b
Sign up for freehttps://github.com/signup?return_to=https://github.com/AssemblyScript/assemblyscript/issues/2730
Sign in to commenthttps://github.com/login?return_to=https://github.com/AssemblyScript/assemblyscript/issues/2730
bughttps://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3A%22bug%22
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.