Skip to content

Implement new.target.#2335

Draft
aardvark179 wants to merge 45 commits intomozilla:masterfrom
aardvark179:aardvark179-new-target
Draft

Implement new.target.#2335
aardvark179 wants to merge 45 commits intomozilla:masterfrom
aardvark179:aardvark179-new-target

Conversation

@aardvark179
Copy link
Copy Markdown
Contributor

This PR stacks on top of #2334 and adds the following commits:
Implement runtime semantics of new target.
Expose new.target in the language.
Enable new.target in 262 tests.

Now that almost every built in function is converted over to the new JSDescriptor and JSCode model we can pass new.target easily to both built in and JS functions, so it seems like the right moment to implement that and expose this at the JS level.

@aardvark179 aardvark179 force-pushed the aardvark179-new-target branch 3 times, most recently from 3cae341 to ddbe007 Compare March 16, 2026 17:46
@aardvark179 aardvark179 force-pushed the aardvark179-new-target branch 4 times, most recently from 7af8644 to b13bdc1 Compare March 19, 2026 21:50
@aardvark179 aardvark179 force-pushed the aardvark179-new-target branch 7 times, most recently from 5843f08 to 6876342 Compare March 30, 2026 09:40
@aardvark179 aardvark179 force-pushed the aardvark179-new-target branch 3 times, most recently from e4395a0 to a38d362 Compare April 1, 2026 17:18
@aardvark179 aardvark179 force-pushed the aardvark179-new-target branch from a38d362 to a337002 Compare April 3, 2026 20:47
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