Skip to content

Change APIs and use sites to use the new VarScope type.#2330

Draft
aardvark179 wants to merge 9 commits intomozilla:masterfrom
aardvark179:aardvark179-varscope-in-call-and-construct
Draft

Change APIs and use sites to use the new VarScope type.#2330
aardvark179 wants to merge 9 commits intomozilla:masterfrom
aardvark179:aardvark179-varscope-in-call-and-construct

Conversation

@aardvark179
Copy link
Copy Markdown
Contributor

This PR stacks on top of #2329 and is the next stage in resolving #2163.

This PR changes the call and construct signatures to make the scopes VarScopes, then changes the JSCode APIs, and then adds a series of commits that change all the places these are implemented to make them obey the new type. We can do this gradually because VarScope is a subtype of Scriptable and so method references can be adapted.

This change also has to include @ZZZank's change #2298 to ensure that serialisation of native methods can still be done, without it there are too many ordering issues with deserialisation and the continuations tests will fail.

Like the previous PR in this series each commit involved in this change can be taken separately, and the PR can be split for purposes of review if desired.

@aardvark179 aardvark179 force-pushed the aardvark179-varscope-in-call-and-construct branch 2 times, most recently from be9a9b8 to e3c28c3 Compare March 10, 2026 16:35
@gbrail gbrail added the Scope Separation Work to separate scopes and objects label Mar 14, 2026
@aardvark179 aardvark179 force-pushed the aardvark179-varscope-in-call-and-construct branch 6 times, most recently from 07150ed to cdd284d Compare March 23, 2026 13:38
@aardvark179 aardvark179 force-pushed the aardvark179-varscope-in-call-and-construct branch from cdd284d to a44ee7d Compare March 24, 2026 10:26
@aardvark179 aardvark179 force-pushed the aardvark179-varscope-in-call-and-construct branch 5 times, most recently from 0eaaf0f to 6268fdd Compare April 1, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope Separation Work to separate scopes and objects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants