mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibJS: get_iterator_values() should pass Value to callback (not Value&)
Value& implies that the callback is expected/able to modify the value, which is not the case.
This commit is contained in:
parent
b4bfc3ed54
commit
d85eed585c
Notes:
sideshowbarker
2024-07-19 02:49:48 +09:00
Author: https://github.com/awesomekling
Commit: d85eed585c
4 changed files with 6 additions and 6 deletions
|
@ -41,6 +41,6 @@ Value create_iterator_result_object(GlobalObject&, Value value, bool done);
|
|||
Object* iterator_next(Object& iterator, Value value = {});
|
||||
void iterator_close(Object& iterator);
|
||||
|
||||
void get_iterator_values(GlobalObject&, Value value, AK::Function<IterationDecision(Value&)> callback);
|
||||
void get_iterator_values(GlobalObject&, Value value, AK::Function<IterationDecision(Value)> callback);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue