应为 Enumerator 对象
还尝试对 Enumerator 之外的类型的对象调用 Enumerator.prototype.atEnd、Enumerator.prototype.item、Enumerator.prototype.moveFirst 或 Enumerator.prototype.moveNext 方法。 此类调用的对象的类型必须为 Enumerator。 以下是违反此规则的代码的示例:
var o = new Object;
o.f = Enumerator.prototype.atEnd;
o.f();
更正此错误
仅对 Enumerator 类型的对象调用 Enumerator.prototype.atEnd、Enumerator.prototype.item、Enumerator.prototype.moveFirst 或 Enumerator.prototype.moveNext 方法。 若要确定您的对象是否为 Enumerator 对象,请使用:
if(x instanceof Enumerator)