fix fuse bug

This commit is contained in:
2026-02-22 10:34:55 -06:00
parent 1d4fc11772
commit a05f180356
4 changed files with 6 additions and 22 deletions

View File

@@ -8550,6 +8550,8 @@ static JSValue js_cell_array (JSContext *ctx, JSValue this_val, int argc, JSValu
/* array(object) - keys */
if (JS_IsRecord (arg)) {
if (argc > 1 && JS_IsFunction (argv[1]))
return JS_RaiseDisrupt (ctx, "array(record, fn) is not valid — use array(array(record), fn) to map over keys");
/* Return object keys */
return JS_GetOwnPropertyNames (ctx, arg);
}