|
@@ -22,13 +22,13 @@ public:
|
|
explicit Map(Object& prototype);
|
|
explicit Map(Object& prototype);
|
|
virtual ~Map() override;
|
|
virtual ~Map() override;
|
|
|
|
|
|
- HashMap<Value, Value, ValueTraits> const& entries() const { return m_entries; };
|
|
|
|
- HashMap<Value, Value, ValueTraits>& entries() { return m_entries; };
|
|
|
|
|
|
+ OrderedHashMap<Value, Value, ValueTraits> const& entries() const { return m_entries; };
|
|
|
|
+ OrderedHashMap<Value, Value, ValueTraits>& entries() { return m_entries; };
|
|
|
|
|
|
private:
|
|
private:
|
|
virtual void visit_edges(Visitor& visitor) override;
|
|
virtual void visit_edges(Visitor& visitor) override;
|
|
|
|
|
|
- HashMap<Value, Value, ValueTraits> m_entries; // FIXME: Replace with a HashMap that maintains a linked list of insertion order for correct iteration order
|
|
|
|
|
|
+ OrderedHashMap<Value, Value, ValueTraits> m_entries;
|
|
};
|
|
};
|
|
|
|
|
|
}
|
|
}
|