From 4ae3a0dcba21080927634f01d52c5cbd3296629f Mon Sep 17 00:00:00 2001 From: Pavel Shliak Date: Tue, 26 Nov 2024 00:08:00 +0400 Subject: [PATCH] LibJS: Make a __JS_ENUMERATE comment more informative --- Libraries/LibJS/Print.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/LibJS/Print.cpp b/Libraries/LibJS/Print.cpp index f0dc6fd8016..66aacd7987a 100644 --- a/Libraries/LibJS/Print.cpp +++ b/Libraries/LibJS/Print.cpp @@ -468,7 +468,8 @@ ErrorOr 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(typed_array_base)) { \ TRY(js_out(print_context, "[ ")); \