michael@0: function testIn() { michael@0: var array = [3]; michael@0: var obj = { "-1": 5, "1.7": 3, "foo": 5, "1": 7 }; michael@0: var a = []; michael@0: for (let j = 0; j < 5; ++j) { michael@0: a.push("0" in array); michael@0: a.push(-1 in obj); michael@0: a.push(1.7 in obj); michael@0: a.push("foo" in obj); michael@0: a.push(1 in obj); michael@0: a.push("1" in array); michael@0: a.push(-2 in obj); michael@0: a.push(2.7 in obj); michael@0: a.push("bar" in obj); michael@0: a.push(2 in obj); michael@0: } michael@0: return a.join(","); michael@0: } michael@0: assertEq(testIn(), "true,true,true,true,true,false,false,false,false,false,true,true,true,true,true,false,false,false,false,false,true,true,true,true,true,false,false,false,false,false,true,true,true,true,true,false,false,false,false,false,true,true,true,true,true,false,false,false,false,false");