5 PP0038
Sebastian Markbåge edited this page 2018-08-09 13:53:18 -07:00

unknown descriptor attributes on deleted property

A property that might have been deleted might have a different set of attributes. In the absence of an explicit enumerable property in the descriptor it would either leave the existing true value unchanged or set it to false, depending on the value of c.

var c = __abstract('boolean', 'c');
var obj = {x:1};
if (c) delete obj.x;
Object.defineProperty(obj, 'x', {value: 2}); // Should this be enumerable or not?
result = obj;