Skip to content

-mm=own: array_reduceRight is not own - #51

Merged
ASDAlexander77 merged 1 commit into
mainfrom
own-defaultlib-batch2
Oct 27, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
own-defaultlib-batch2

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Depends on ASDAlexander77/TypeScriptCompiler#705, which makes string_matchAll and string_match_lastIndex pass under own. Merge that first.

This PR marks array_reduceRight as // not own. Over an array of arrays, reduceRight may start from an element and return it unchanged, which gives one array two owners. Own refuses that by design, as it does an Array<T> of objects.

With the compiler PR, the DefaultLib suite has no failures under own:

Model Passed Skipped Total
own 161 11 172
rc, none 171 1 172
gc 172 0 172

These hold in release and debug, compiled and under the JIT.

🤖 Generated with Claude Code

reduceRight over an array of arrays may start from an element and return it
as it is, a second owner of it, which -mm=own refuses by design.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit 4953d51 into main Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant