3 var iteratorSymbol = require('es6-symbol').iterator
4 , Iterator = require('../');
6 module.exports = function (t, a) {
8 a.throws(function () { t(); }, TypeError, "Undefined");
9 a.throws(function () { t({}); }, TypeError, "Plain object");
10 a.throws(function () { t({ length: 0 }); }, TypeError, "Array-like");
12 obj[iteratorSymbol] = function () { return new Iterator([]); };
13 a(t(obj), obj, "Iterator");
15 a(t(obj), obj, 'Array');