Skip to content

Commit

Permalink
Remove Glimmer AST Deprecation (#1220)
Browse files Browse the repository at this point in the history
Accessing this value in original is deprecated, and very noisily so,
replacing this with value as recommended.
  • Loading branch information
jrjohnson authored Jul 25, 2024
1 parent ec37255 commit c5f2ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions strip-test-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ module.exports = function () {
},

MustacheStatement(node) {
node.params = node.params.filter(param => !isTestSelector(param.original));
node.params = node.params.filter(param => !isTestSelector(param.value));
node.hash.pairs = node.hash.pairs.filter(pair => !isTestSelector(pair.key));
},

BlockStatement(node) {
node.params = node.params.filter(param => !isTestSelector(param.original));
node.params = node.params.filter(param => !isTestSelector(param.value));
node.hash.pairs = node.hash.pairs.filter(pair => !isTestSelector(pair.key));
},
},
Expand Down

0 comments on commit c5f2ac5

Please sign in to comment.