Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Sebastian Markbåge edited this page Aug 9, 2018 · 5 revisions

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;