Skip to content

Commit

Permalink
add debug information for variables like $ARGS
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Aug 29, 2021
1 parent 9f84593 commit 4ee9f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ func (c *compiler) compile(q *Query) error {
if !newLexer(name).validVarName() {
return &variableNameError{name}
}
v := c.pushVariable(name)
c.append(&code{op: opstore, v: v})
c.appendCodeInfo(name)
c.append(&code{op: opstore, v: c.pushVariable(name)})
}
for _, i := range q.Imports {
if err := c.compileImport(i); err != nil {
Expand Down

0 comments on commit 4ee9f7f

Please sign in to comment.