michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: michael@0: var BUGNUMBER = 568056; michael@0: var summary = "Iterator(obj) must not go up obj's prototype chain"; michael@0: michael@0: var foo = { michael@0: z: 9, michael@0: }; michael@0: michael@0: var bar = { michael@0: __proto__: foo, michael@0: a: 1, michael@0: b: 2, michael@0: }; michael@0: michael@0: var results = []; michael@0: for each (let [key, value] in Iterator(bar)) michael@0: results.push(key + ":" + value); michael@0: michael@0: var actual = results.join(';') michael@0: var expect = "a:1;b:2"; michael@0: michael@0: reportCompare(expect, actual, summary);