Repository navigation
fix(bench): expose Text and Comment in the Strong compiler-checks DOM shim - #1499
Merged
Merged
Conversation
… shim The strong-compiler-checks harness executes compiled cache controls against a happy-dom Window, publishing a fixed list of DOM globals. The client runtime now references the Text constructor while binding signal text, so every run failed before timing with `ReferenceError: Text is not defined`, for the baseline and candidate alike. Publish Text and Comment with the other node constructors. Co-Authored-By: Claude Opus 5.5 <[email protected]>
8 tasks done
trueadm
marked this pull request as ready for review
October 1, 2026 08:49
trueadm
added a commit
that referenced
this pull request
Oct 1, 2026
main now contains #1494–#1497 and the benchmark fix (#1499). Resolve against the updated #1496 branch so this PR carries the uncached useSyncExternalStore snapshot check on top of the open review follow-ups. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 tasks done
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
benchmarks/strong-compiler-checks/run.mjsexecutes compiled cache controls against a happy-domWindowand publishes a fixed list of DOM globals. The client runtime now references theTextconstructor while binding signal text, so on currentmainevery run fails before timing withReferenceError: Text is not defined, for the baseline and the candidate alike. This publishesTextandCommentwith the other node constructors.Found while gathering compiler-throughput evidence for the Strong state purity checks (#1494 and its stack, part of #1027). The fix is independent of that stack.
Validation
node benchmarks/strong-compiler-checks/run.mjs --baseline . --smokeonmain. Without this change it fails withReferenceError: Text is not defined; with it, it passes, including the executed cache controls. Full paired runs also completed with the fix applied.pnpm format:files:check benchmarks/strong-compiler-checks/run.mjspnpm format:check,pnpm typecheck,pnpm test: not run separately for this benchmark-only change; they ran on the Strong stack that includes it.Provenance
agent-authored)🤖 Generated with Claude Code
Note
Low Risk
Benchmark-only change to the DOM globals shim; no production runtime or compiler paths are modified.
Overview
Fixes the strong-compiler-checks benchmark harness so cached semantic validation can run against current client runtime code.
validateCachedSemanticsalready copies a fixed set of happy-dom globals ontoglobalThisbefore executing bundled cache controls. The list now includesTextandCommentalongside the other node constructors. WithoutText, signal text binding paths that useinstanceof Text(e.g. inwriteDirectSignalText) throwReferenceError: Text is not definedand the harness aborts before any timing.No compiler or runtime behavior changes—only the benchmark DOM shim’s exposed globals.
Reviewed by Cursor Bugbot for commit 09a71a1. Bugbot is set up for automated code reviews on this repo. Configure here.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.