Skip to content

Commit

Permalink
fix: object info in event block
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Dec 3, 2023
1 parent e2c87cf commit 8119030
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/util/visit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export class Visitor {
"Entry." + event.type as Expression,
[
...this.paramsToExpressions(event.params),
this.blockGroupToArrow(rest)
this.blockGroupToArrow(rest),
`"$obj$"` as Expression,
]
)
}
Expand Down Expand Up @@ -175,7 +176,7 @@ export class Visitor {
...this.paramsToExpressions(block.params),
...block.statements
.map(blockGroup => this.blockGroupToArrow.bind(this)(blockGroup)),
`"$obj$"` as Expression
`"$obj$"` as Expression,
]
)
}
Expand Down
2 changes: 1 addition & 1 deletion test/fib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/proj1.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/proj2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8119030

Please sign in to comment.