Invert property attributes
Author: HalidOdatCreated Jul 22, 2021Updated Sep 18, 2026
LabelsA-Technical DebtA-ExecutionA-API
Currently we have the Attribute which by default is READONLY, NON_ENUMERABLE and PERMANENT. Which means when we create a for example a data descriptor with only Attribute::READONLY (DataDescriptor::new(value, Attribute::READONLY)), One would expect it to be READONLY, ENUMBERABLE and CONFIGURABLE, but in reality it is READONLY, NON_ENUMERABLE and PERMANENT which is counter intuitive.
This is similar to what V8 does.
Source: boa-dev/boa