mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
LibJS: Remove shift, pop, push functions from Array object
This abstraction isn't really that useful, as we can access the underlying Vector<Value> using elements() and operate on it directly.
This commit is contained in:
committed by
Andreas Kling
parent
d74ad81402
commit
9fab52a390
@@ -977,7 +977,7 @@ Value ArrayExpression::execute(Interpreter& interpreter) const
|
||||
auto value = element.execute(interpreter);
|
||||
if (interpreter.exception())
|
||||
return {};
|
||||
array->push(value);
|
||||
array->elements().append(value);
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user