Fixing some silliness from my last checkin, tokenstr takes a tokentype, not the token itself. r=brendan

git-svn-id: svn://10.0.0.236/trunk@192762 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mrbkap%gmail.com 2006-03-22 06:23:59 +00:00
parent b830c54063
commit 7dd9517c77

View File

@ -278,8 +278,7 @@ Np.toString = function () {
a.sort(function (a,b) { return (a.id < b.id) ? -1 : 1; });
const INDENTATION = " ";
var n = ++Node.indentLevel;
var t = tokens[this.type];
var s = "{\n" + INDENTATION.repeat(n) + "type: " + tokenstr(t);
var s = "{\n" + INDENTATION.repeat(n) + "type: " + tokenstr(this.type);
for (i = 0; i < a.length; i++)
s += ",\n" + INDENTATION.repeat(n) + a[i].id + ": " + a[i].value;
n = --Node.indentLevel;