# HG changeset patch # User Mike Pavone # Date 1342383186 25200 # Node ID 8a9b96888b7df6e4fa0da84aa370e0bd191d3476 # Parent c801dccdb4fb0aa20bda2ce6230ddd697fbda76d Fix another symbol table/closure bug diff -r c801dccdb4fb -r 8a9b96888b7d compiler.js --- a/compiler.js Sun Jul 15 13:06:29 2012 -0700 +++ b/compiler.js Sun Jul 15 13:13:06 2012 -0700 @@ -320,7 +320,10 @@ } this.symbols = symbols; var name = this.name[this.name.length-1] == ':' ? this.name.substr(0, this.name.length-1) : this.name; - symbols.find(name) + var funinfo = symbols.find(name); + if (funinfo && (funinfo.type == 'self' || funinfo.type == 'parent')) { + symbols.find('self'); + } for (var i in this.args) { this.args[i].populateSymbols(symbols); }