Repository navigation
fix(eval): restore global var declaration checks and descriptors - #9031
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughGlobal Script lowering now records ChangesGlobal eval declarations
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
proggeramlug
force-pushed
the
fix/release-direct-eval-global-var
branch
from
August 29, 2026 10:32
410df8a to
e6e274a
Compare
proggeramlug
marked this pull request as ready for review
August 29, 2026 10:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
eval("var …")through global declaration instantiation instead of the simple-expression shortcutvarbindings as non-configurable properties before ordinary mirror writesRelease blockers fixed
direct_eval_non_definable_global_var_throwsno longer skipsCanDeclareGlobalVaron a non-extensible globalconfigurable:falsewhen reusing an existing ScriptvarValidation
cargo fmt --all -- --checkcargo test -p perry-hirissue_5579_non_definable_global_eval— 7/7issue_5841_eval_global_descriptor— 6/6issue_5579_indirect_eval_global_completion— 8/8test_issue_611_globalthis.tsmatches the committed expected outputCloses #5579
Closes #5841
Summary by CodeRabbit
evalvariable declarations on non-extensible global objects.varbindings and descriptor preservation during entry-script evaluation.