Skip to content

Commit 53eaacd

Browse files
NullVoxPopuliclaude
andcommitted
Fix shadow fn to return a function for on modifier
The shadowed fn must return a function since its return value is passed to the on modifier as the callback argument. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8cabd4b commit 53eaacd

File tree

1 file changed

+1
-0
lines changed
  • packages/@glimmer-workspace/integration-tests/test/keywords

1 file changed

+1
-0
lines changed

packages/@glimmer-workspace/integration-tests/test/keywords/fn-test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class KeywordFn extends RenderTest {
6161
'can be shadowed'(assert: Assert) {
6262
let fn = () => {
6363
assert.step('shadowed:success');
64+
return () => {};
6465
};
6566

6667
let greet = () => {};

0 commit comments

Comments
 (0)