mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibJS: Make a __JS_ENUMERATE comment more informative
This commit is contained in:
parent
af9d855b70
commit
4ae3a0dcba
Notes:
github-actions[bot]
2024-11-25 20:18:04 +00:00
Author: https://github.com/shlyakpavel
Commit: 4ae3a0dcba
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2578
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 1 deletions
|
@ -468,7 +468,8 @@ ErrorOr<void> print_typed_array(JS::PrintContext& print_context, JS::TypedArrayB
|
|||
TRY(print_value(print_context, JS::Value(JS::typed_array_byte_length(typed_array_record)), seen_objects));
|
||||
|
||||
TRY(js_out(print_context, "\n"));
|
||||
// FIXME: This kinda sucks.
|
||||
// FIXME: Find a better way to print typed arrays to the console.
|
||||
// The current solution is limited to 100 lines, is hard to read, and hampers debugging.
|
||||
#define __JS_ENUMERATE(ClassName, snake_name, PrototypeName, ConstructorName, ArrayType) \
|
||||
if (is<JS::ClassName>(typed_array_base)) { \
|
||||
TRY(js_out(print_context, "[ ")); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue