fix fuse bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user