Skip to content

Revert unnecessary change to normalize.ts#21255

Merged
NullVoxPopuli merged 1 commit intoemberjs:nvp/on-as-keyword-tremplate-the-transform-wayfrom
NullVoxPopuli-ai-agent:nvp/on-as-keyword-tremplate-the-transform-way
Mar 26, 2026
Merged

Revert unnecessary change to normalize.ts#21255
NullVoxPopuli merged 1 commit intoemberjs:nvp/on-as-keyword-tremplate-the-transform-wayfrom
NullVoxPopuli-ai-agent:nvp/on-as-keyword-tremplate-the-transform-way

Conversation

@NullVoxPopuli-ai-agent
Copy link
Copy Markdown
Contributor

Summary

  • Reverts the change to packages/@glimmer/syntax/lib/v2/normalize.ts that made lexicalScope optional with a localsSet fallback
  • This change is never exercised — the only caller (compiler.ts:86) always passes lexicalScope explicitly: normalize(source, { lexicalScope: () => false, ...options })

Test plan

  • 338 keyword tests pass (526 assertions, 0 failures)
  • Build succeeds

🤖 Generated with Claude Code

The change to make lexicalScope optional with a localsSet fallback is
never exercised — the only caller (compiler.ts) always passes
lexicalScope explicitly.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@NullVoxPopuli NullVoxPopuli merged commit 8e82ca8 into emberjs:nvp/on-as-keyword-tremplate-the-transform-way Mar 26, 2026
36 of 37 checks passed
NullVoxPopuli added a commit that referenced this pull request Apr 6, 2026
The change to make lexicalScope optional with a localsSet fallback is
never exercised — the only caller (compiler.ts) always passes
lexicalScope explicitly.

Co-authored-by: NullVoxPopuli <[email protected]>
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants