diff options
Diffstat (limited to 'internal/compile/compile.go')
-rw-r--r-- | internal/compile/compile.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/compile/compile.go b/internal/compile/compile.go index 4160096..b8f4618 100644 --- a/internal/compile/compile.go +++ b/internal/compile/compile.go @@ -41,7 +41,7 @@ import ( const debug = false // TODO(adonovan): use a bitmap of options; and regexp to match files // Increment this to force recompilation of saved bytecode files. -const Version = 8 +const Version = 9 type Opcode uint8 @@ -1146,7 +1146,7 @@ func (fcomp *fcomp) stmt(stmt syntax.Stmt) { fcomp.setPos(stmt.Load) fcomp.emit1(LOAD, uint32(len(stmt.From))) for i := range stmt.To { - fcomp.emit1(SETGLOBAL, uint32(stmt.To[len(stmt.To)-1-i].Binding.Index)) + fcomp.set(stmt.To[len(stmt.To)-1-i]) } default: |