@@ -2597,7 +2597,7 @@ fn Caller(comptime E: type, comptime State: type) type {
25972597 var arr : std .ArrayListUnmanaged (u8 ) = .{};
25982598 for (0.. js_parameter_count ) | i | {
25992599 const js_value = info .getArg (@intCast (i ));
2600- const value_string = try valueToString (arena , js_value , isolate , context );
2600+ const value_string = try valueToDetailString (arena , js_value , isolate , context );
26012601 const value_type = try jsStringToZig (arena , try js_value .typeOf (isolate ), isolate );
26022602 try std .fmt .format (arr .writer (arena ), "{d}: {s} ({s})\n " , .{ i + 1 , value_string , value_type });
26032603 }
@@ -2879,6 +2879,11 @@ const TaggedAnyOpaque = struct {
28792879 subtype : ? SubType ,
28802880};
28812881
2882+ fn valueToDetailString (allocator : Allocator , value : v8.Value , isolate : v8.Isolate , context : v8.Context ) ! []u8 {
2883+ const str = try value .toDetailString (context );
2884+ return jsStringToZig (allocator , str , isolate );
2885+ }
2886+
28822887fn valueToString (allocator : Allocator , value : v8.Value , isolate : v8.Isolate , context : v8.Context ) ! []u8 {
28832888 const str = try value .toString (context );
28842889 return jsStringToZig (allocator , str , isolate );
0 commit comments