diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-10-20 12:10:23 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-21 00:26:45 +0100 |
commit | 04b4307b3d57a4c48abfa19a22d4745b23760d78 (patch) | |
tree | 305cbf90ca012c4370b5c8ff5b35c221719817da /Userland/Libraries/LibGL/SoftwareRasterizer.h | |
parent | 7b4814f74c01418d7e250db28db8fd38269f73df (diff) | |
download | serenity-04b4307b3d57a4c48abfa19a22d4745b23760d78.zip |
LibJS: Convert get_iterator_values helper to ThrowCompletionOr
This one is a bit unusual, so to clarify:
Previously, callers of get_iterator_values() would supply a callback
that would return an IterationDecision, and an enum to indicate whether
iterator_close() should be invoked upon IterationDecision::Break.
Now, use of both those enums is removed, and callers must return an
Optional<Completion>. If a Completion is provided, the iterator will be
closed, and that completion will be returned from get_iterator_values.
Otherwise, once the iterator is exhausted, a default-initialized
Completion will be returned.
Diffstat (limited to 'Userland/Libraries/LibGL/SoftwareRasterizer.h')
0 files changed, 0 insertions, 0 deletions