LibJS: Implement Array.prototype.{shift,pop}

This commit is contained in:
Linus Groh 2020-03-28 21:02:45 +00:00 committed by Andreas Kling
commit c209ea1985
Notes: sideshowbarker 2024-07-19 08:05:19 +09:00
5 changed files with 66 additions and 1 deletions

View file

@ -39,6 +39,8 @@ public:
const Vector<Value>& elements() const { return m_elements; }
Vector<Value>& elements() { return m_elements; }
Value shift();
Value pop();
void push(Value);
private: