test(runtime): verify apply_active_realm_protos with all-None clears overrides#370
Conversation
…overrides Covers the clearing path: set an override, call apply_active_realm_protos with FunctionRealmProtos() (all None), confirm fast path is re-allowed and proto getter falls back to the base proto. Follow-up to #369 — identified as a gap during review. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new whitebox test is added to ChangesOverride Clearance Whitebox Test
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
Benchmark ResultsRun: https://github.com/dowdiness/js_engine/actions/runs/27630432811
Stage summary
Focused bytecode base-vs-head comparison
Base-vs-head comparison
Mean-time chart (log scale)
Closure-conversion comparison
|
Summary
Follow-up to #369. Adds a test covering the clearing path of
apply_active_realm_protos— identified as a gap during review.The test:
map_protooverride → verifies fast path is blocked and getter returns the overrideapply_active_realm_protos(rs, FunctionRealmProtos())(all-None) → verifies fast path is re-allowed and getter falls back to the base protoThis exercises the branch in
apply_active_realm_protoswhereany_setisfalse→ writesNonetoactive_overrides.Test plan
moon test interpreter/runtime: 92/92 passmoon check --deny-warnclean🤖 Generated with Claude Code
Summary by CodeRabbit