mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibJS: Object.getOwnPropertyNames() should enumerate String's .length
We were incorrectly aborting property name enumeration after generating names for all the indexable properties in the underlying string.
This commit is contained in:
parent
686213c2b8
commit
f86e241699
2 changed files with 5 additions and 2 deletions
|
@ -299,8 +299,6 @@ MarkedValueList Object::get_own_properties(PropertyKind kind, bool only_enumerab
|
|||
if (vm().exception())
|
||||
return MarkedValueList { heap() };
|
||||
}
|
||||
|
||||
return properties;
|
||||
}
|
||||
|
||||
if (return_type != GetOwnPropertyReturnType::SymbolOnly) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue