blob: 282c88c916d6095facaca5fea5b186746e82919c [file] [log] [blame]
function test() {
var object = {};
var symbol = Symbol();
object[symbol] = 1;
for (var x in object){}
var passed = !x;
if (Object.keys && Object.getOwnPropertyNames) {
passed &= Object.keys(object).length === 0
&& Object.getOwnPropertyNames(object).length === 0;
}
return passed;
}
if (!test())
throw new Error("Test failed");