diff options
author | Russ Cox <rsc@golang.org> | 2009-09-03 16:20:49 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-09-03 16:20:49 -0700 |
commit | b423697aee32aedb8695c271528486389e39c403 (patch) | |
tree | 088f49d2c54ed11c91730055b08d5cbabe0e88c6 /usr/austin/eval/compiler.go | |
parent | 5468e41da2c2f71875fffc94e8914b312e689707 (diff) | |
download | golang-b423697aee32aedb8695c271528486389e39c403.tar.gz |
convert testing to World.
start on Decl, but not working yet
R=austin
DELTA=762 (201 added, 205 deleted, 356 changed)
OCL=34335
CL=34349
Diffstat (limited to 'usr/austin/eval/compiler.go')
-rw-r--r-- | usr/austin/eval/compiler.go | 3 |
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; |