-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX release] local variable shadowing assert
Previously we considered the block params to shadow the params, hash, attributes and named arguments on the same block/element, which was incorrect. For example: ```hbs {{#let (concat "foo" "bar") as |concat|}} ... {{/let}} ``` In this case the assertion code incorrectly believed the `concat` in the sub-expression invocation was being shadowed. This is now fixed. Also fixes a bug where we incorrectly transformed mustaches in attribute positions: ```hbs {{#let ... as |foo|}} <div class={{foo bar}} /> {{/let}} ``` ...became... ```hbs {{#let ... as |foo|}} <div class={{component foo bar}} /> {{/let}} ``` This is clearly incorrect and has been fixed here as well. Fixes #17370
- Loading branch information
1 parent
c52ea90
commit 030f373
Showing
3 changed files
with
385 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.