blob: dbb40d03b65ab531f912121206e6c447ea4d483b [file] [log] [blame]
function test() {
var obj = {
2: true,
0: true,
1: true,
' ': true,
9: true,
D: true,
B: true,
'-1': true,
};
obj.A = true;
obj[3] = true;
Object.defineProperty(obj, 'C', { value: true, enumerable: true });
Object.defineProperty(obj, '4', { value: true, enumerable: true });
delete obj[2];
obj[2] = true;
return Object.getOwnPropertyNames(obj).join('') === "012349 DB-1AC";
}
if (!test())
throw new Error("Test failed");