[bun.js] Fix bug with readdirSync on folders with less than 32 files

Closes https://github.com/Jarred-Sumner/bun/issues/143
This commit is contained in:
Jarred Sumner
2022-04-13 18:48:09 -07:00
parent d273948f16
commit f2c21b7733
2 changed files with 85 additions and 10 deletions

View File

@@ -168,7 +168,7 @@ pub const To = struct {
}
}
var array = JSC.JSValue.createStringArray(context.ptr(), zig_strings.ptr, zig_strings.len, clone).asObjectRef();
var array = JSC.JSValue.createStringArray(context.ptr(), zig_strings.ptr, value.len, clone).asObjectRef();
if (clone) {
for (value) |path_string| {