michael@0: // map.keys(), .values(), and .entries() on an empty map produce empty iterators. michael@0: michael@0: var m = Map(); michael@0: var ki = m.keys(), vi = m.values(), ei = m.entries(); michael@0: var p = Object.getPrototypeOf(ki) michael@0: assertEq(Object.getPrototypeOf(vi), p); michael@0: assertEq(Object.getPrototypeOf(ei), p); michael@0: michael@0: for (let k of ki) michael@0: throw "FAIL"; michael@0: for (let v of vi) michael@0: throw "FAIL"; michael@0: for (let [k, v] of ei) michael@0: throw "FAIL";