summaryrefslogtreecommitdiff
path: root/usr/austin/eval/compiler.go
diff options
context:
space:
mode:
Diffstat (limited to 'usr/austin/eval/compiler.go')
-rw-r--r--usr/austin/eval/compiler.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/austin/eval/compiler.go b/usr/austin/eval/compiler.go
index b13cd298c..12cace9e0 100644
--- a/usr/austin/eval/compiler.go
+++ b/usr/austin/eval/compiler.go
@@ -41,8 +41,9 @@ func (a *compiler) numError() int {
func newUniverse() *Scope {
sc := &Scope{nil, 0};
sc.block = &block{
- offset: -1,
+ offset: 0,
scope: sc,
+ global: true,
defs: make(map[string] Def)
};
return sc;