Skip to content

Commit fcc5b0a

Browse files
fix: spread console error args when proxying
Without this the proxied errors are logged as an array, which is not very helpful.
1 parent 2bbfff3 commit fcc5b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/act-compat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function asyncAct(cb) {
4242
) {
4343
// no-op
4444
} else {
45-
originalConsoleError.call(console, args)
45+
originalConsoleError.call(console, ...args)
4646
}
4747
}
4848
let cbReturn, result

0 commit comments

Comments
 (0)