Skip to content

Commit 23294f8

Browse files
fix object check
1 parent 29b49bb commit 23294f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function formatParams(params, module, funcCallerParam) {
7676
for (let i = 1; i < params.length; i++) {
7777
if (params[i] instanceof Error) {
7878
metadata.error = params[i];
79-
} else if (typeof params[i] === 'object') {
79+
} else if (params[i] && typeof params[i] === 'object') {
8080
if (!metadata.extra) {
8181
metadata.extra = {};
8282
}

0 commit comments

Comments
 (0)