Fix from Frankie Robertson <frankierobertson5@googlemail.com> to Node toString (399659, r/a=me).

This commit is contained in:
brendan@mozilla.org 2007-10-16 15:56:16 -07:00
parent b66fc6c976
commit 5f7baa7b6c

View File

@ -272,7 +272,7 @@ function tokenstr(tt) {
Np.toString = function () {
var a = [];
for (var i in this) {
if (this.hasOwnProperty(i) && i != 'type')
if (this.hasOwnProperty(i) && i != 'type' && i != 'target')
a.push({id: i, value: this[i]});
}
a.sort(function (a,b) { return (a.id < b.id) ? -1 : 1; });