mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Implement seal, freeze, extensible-related function properties in Object prototype
This commit is contained in:
parent
35a41bf412
commit
8873264fcd
6 changed files with 150 additions and 15 deletions
|
|
@ -67,6 +67,7 @@ void ArrayObject::enumeration(ExecutionState& state, std::function<bool(const Ob
|
|||
if (LIKELY(isFastModeArray())) {
|
||||
size_t len = m_fastModeData.size();
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
ASSERT(isFastModeArray());
|
||||
if (m_fastModeData[i].isEmpty())
|
||||
continue;
|
||||
if (!callback(ObjectPropertyName(state, Value(i)), ObjectStructurePropertyDescriptor::createDataDescriptor(ObjectStructurePropertyDescriptor::AllPresent))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue