diff compiler.js @ 60:ef3b34c2c0a4

Fix populatesymbols for parent property references. Fix lambda-style modules in cbackend.
author Mike Pavone <pavone@retrodev.com>
date Sat, 14 Jul 2012 03:05:12 -0700
parents 0fd06e077afe
children f57b2f4048d0
line wrap: on
line diff
--- a/compiler.js	Sat Jul 14 01:39:43 2012 -0700
+++ b/compiler.js	Sat Jul 14 03:05:12 2012 -0700
@@ -271,7 +271,7 @@
 symbol.prototype.populateSymbols = function(symbols) {
 	this.symbols = symbols;
 	var ret = symbols.find(this.cleanName());
-	if (ret && ret.type == 'self') {
+	if (ret && (ret.type == 'self' || ret.type == 'parent')) {
 		symbols.find('self');
 	}
 }