mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibJS: Add a helper for calling JS::Function's with arguments
The fact that a `MarkedValueList` had to be created was just annoying, so here's an alternative. This patchset also removes some (now) unneeded MarkedValueList.h includes.
This commit is contained in:
parent
521e730df1
commit
394e4c04cd
Notes:
sideshowbarker
2024-07-19 03:08:56 +09:00
Author: https://github.com/alimpfard
Commit: 394e4c04cd
Pull-request: https://github.com/SerenityOS/serenity/pull/3298
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/linusg
15 changed files with 72 additions and 113 deletions
|
@ -245,7 +245,7 @@ void Interpreter::gather_roots(Badge<Heap>, HashTable<Cell*>& roots)
|
|||
roots.set(symbol.value);
|
||||
}
|
||||
|
||||
Value Interpreter::call(Function& function, Value this_value, Optional<MarkedValueList> arguments)
|
||||
Value Interpreter::call_internal(Function& function, Value this_value, Optional<MarkedValueList> arguments)
|
||||
{
|
||||
ASSERT(!exception());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue