Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layering: the [[Realm]] of a Script Record cannot be *undefined* #3332

Merged
merged 1 commit into from
May 22, 2024

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented May 21, 2024

Fixes #3326.

As mentioned in that issue, the editors suspect this was a refactoring issue, since it does not appear to ever actually have been possible for this to be *undefined*, and in any case is not assigned later. The only caller of ParseScript known to us is in HTML, which passes the realm of an environment settings object, which (I believe) cannot be *undefined*, so this restriction on types matches what the consumer actually passed.

@ljharb ljharb added the layering affects the public spec interface and may require updates to integrating specs label May 21, 2024
@bakkot bakkot added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label May 21, 2024
@ljharb ljharb merged commit a92f3e9 into main May 22, 2024
8 checks passed
@ljharb ljharb deleted the no-undef-realm branch May 22, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
layering affects the public spec interface and may require updates to integrating specs ready to merge Editors believe this PR needs no further reviews, and is ready to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unclear semantics for ScriptEvaluation when scriptRecord.[[Realm]] is undefined
4 participants