ArrayLength returns correct value

This commit is contained in:
2026-01-23 11:40:23 -06:00
parent b7615bb801
commit 36833db2c9
2 changed files with 2 additions and 66 deletions

View File

@@ -241,10 +241,8 @@ int cell_init(int argc, char **argv)
int JS_ArrayLength(JSContext *js, JSValue a)
{
JSValue length = JS_GetPropertyStr(js, a, "length");
int len;
JS_ToInt32(js,&len,length);
JS_FreeValue(js,length);
int64_t len;
JS_GetLength(js, a, &len);
return len;
}