diff --git a/common/remote_object.go b/common/remote_object.go index a22873cc8..4e35bf9e4 100644 --- a/common/remote_object.go +++ b/common/remote_object.go @@ -249,7 +249,7 @@ func parseConsoleRemoteObjectPreview(logger *log.Logger, op *cdpruntime.ObjectPr } func parseConsoleRemoteArrayPreview(logger *log.Logger, op *cdpruntime.ObjectPreview) string { - arr := make([]any, 0) + arr := make([]any, 0, len(op.Properties)) if op.Overflow { logger.Warnf("parseConsoleRemoteArrayPreview", "array is too large and will be parsed partially") }