Skip to content

Commit

Permalink
Remove Glimmer AST Deprecation
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 committed Jul 25, 2024
1 parent 83ad637 commit 4bf8559
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 4bf8559

Please sign in to comment.