You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The length property of an array is enumerable #971
I have taken a look, but I have not found anything obvious. I would be happy to fix it, but I do not know the code so well and I would need some guidance.
Activity
tofpie commentedon Dec 16, 2020
I have taken a look, but I have not found anything obvious. I would be happy to fix it, but I do not know the code so well and I would need some guidance.
Razican commentedon Dec 16, 2020
I believe this is set up here: https://github.com/boa-dev/boa/blob/master/boa/src/builtins/array/mod.rs#L61
The issue is that we are using
Attribute::all(), which will sett all types totrueas per https://github.com/boa-dev/boa/blob/470dbb43818dc7658a45a011856584fe60220662/boa/src/property/attribute/mod.rsI think it should use
Attribute::default().Razican commentedon Dec 16, 2020
Actually, not, since it should be writable as per this, so we should probably select the right attribute.
The spec: https://tc39.es/ecma262/#sec-properties-of-array-instances-length
tofpie commentedon Dec 16, 2020
It seems this is another bug. This causes:
This should be false. Maybe I can add the fix in the same PR?