mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibJS: Implement Array.prototype.{shift,pop}
This commit is contained in:
parent
c5cf740830
commit
c209ea1985
Notes:
sideshowbarker
2024-07-19 08:05:19 +09:00
Author: https://github.com/linusg
Commit: c209ea1985
Pull-request: https://github.com/SerenityOS/serenity/pull/1523
5 changed files with 66 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue