ref: 94000c669a17a1888d2cdff66116340f0cb3386e
parent: 364acef42e055e2ef03d6b5cb49a2686190ac17d
author: Connor Nelson <[email protected]>
date: Tue Mar 23 08:47:49 EDT 2021
Fix crash when length is negative
--- a/jsarray.c
+++ b/jsarray.c
@@ -103,7 +103,7 @@
seplen = 1;
}
- if (len == 0) {
+ if (len <= 0) {
js_pushliteral(J, "");
return;
}