From 563e599efe5d32d22457351dec86a8bec3d44938 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 (cherry picked from commit 4ae3a0dcba21080927634f01d52c5cbd3296629f) --- Userland/Libraries/LibJS/Print.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Print.cpp b/Userland/Libraries/LibJS/Print.cpp index d3a1dbad37165f..e9c686dfbb8f55 100644 --- a/Userland/Libraries/LibJS/Print.cpp +++ b/Userland/Libraries/LibJS/Print.cpp @@ -471,7 +471,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, "[ ")); \