From 5f471ee003bd26dc2393dad7f9c246c0f94a1f36 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Sun, 28 Dec 2025 16:22:11 -0600 Subject: [PATCH] fix array length creation --- internal/array.cm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/array.cm b/internal/array.cm index d494e45d..36b252c7 100644 --- a/internal/array.cm +++ b/internal/array.cm @@ -16,7 +16,7 @@ function array(arg, arg2, arg3, arg4) { var result = [] if (arg2 == null) { - for (var i = 0; i < len; i++) result[i] = null + result.length = 100 } else if (typeof arg2 == 'function') { var arity = arg2.length for (var i = 0; i < len; i++) {