var isObjectLitAr = [ false ];
var isInObjectLitAr;
- this.scopes.push(scope);
+ if (scope) {
+ this.scopes.push(scope);
+ }
+
//var scopeIndent = '';
//this.scopes.forEach(function() {
while (true) {
token = this.ts.nextTok();
//!this.debug|| print( token.toString());
- print('SCOPE-VAR:' + token.toString());
+ print('SCOPE-VAR-VAL:' + token.toString());
if (!token) { // can return false at EOF!
break;
}
this.globalScope.declareIdentifier(symbol, token);
this.warn("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')', true);
} else {
- println("undeclared:" + symbol)
+ print("undeclared:" + token.toString())
}