Skip to content

Convert pretty much all built ins to use ClassDescriptors#2332

Draft
aardvark179 wants to merge 40 commits intomozilla:masterfrom
aardvark179:aardvark179-descriptors-2
Draft

Convert pretty much all built ins to use ClassDescriptors#2332
aardvark179 wants to merge 40 commits intomozilla:masterfrom
aardvark179:aardvark179-descriptors-2

Conversation

@aardvark179
Copy link
Copy Markdown
Contributor

@aardvark179 aardvark179 commented Mar 10, 2026

This PR stacks on top of #2331 and converts almost all built ins from LambdaConstructor to ClassDescriptor. I think the only ones left are NativeSymbol, JavaAdapter, and some test cases. I'll add those before moving this from draft.

@aardvark179
Copy link
Copy Markdown
Contributor Author

I've added the conversion of iterators, generators, and generator functions, to this PR. That also required some bug fixes around our iteration handling, and I've made the choice that we should do the spec compliant thing if the language version is greater than 1.8, and preserve the old spider monkey behaviour with older JS language versions.

@aardvark179 aardvark179 force-pushed the aardvark179-descriptors-2 branch 7 times, most recently from ebd7632 to bc1782d Compare March 23, 2026 13:39
@aardvark179 aardvark179 force-pushed the aardvark179-descriptors-2 branch 5 times, most recently from 85d21f7 to 406b7d0 Compare March 31, 2026 09:19
@aardvark179 aardvark179 force-pushed the aardvark179-descriptors-2 branch from 406b7d0 to bf5829f Compare April 1, 2026 16:37
@aardvark179 aardvark179 force-pushed the aardvark179-descriptors-2 branch from bf5829f to a8b1147 Compare April 3, 2026 20:46
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