| 440 | } |
| 441 | |
| 442 | bool Marshaller::pushMapIteratorNextEntry(int index) { |
| 443 | auto iterator = getOrUndefinedAsRef(index).checkedToValdiObject<ValueMapIterator>(_exceptionTracker); |
| 444 | if (!_exceptionTracker) { |
| 445 | return false; |
| 446 | } |
| 447 | |
| 448 | auto entry = iterator->next(); |
| 449 | if (entry) { |
| 450 | push(Value(entry->first)); |
| 451 | push(std::move(entry->second)); |
| 452 | return true; |
| 453 | } else { |
| 454 | return false; |
| 455 | } |
| 456 | } |
| 457 | |
| 458 | int Marshaller::duplicate(int index) { |
| 459 | auto value = get(index); |