michael@0: function testStringResolve() { michael@0: var x = 0; michael@0: for each (let d in [new String('q'), new String('q'), new String('q')]) { michael@0: if (("" + (0 in d)) === "true") michael@0: x++; michael@0: } michael@0: return x; michael@0: } michael@0: assertEq(testStringResolve(), 3);