Skip to content

Commit 1211962

Browse files
authored
chore: sync generated code (fastify#5295)
1 parent 101ba57 commit 1211962

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/error-serializer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
? input.toJSON()
2424
: input
2525

26+
if (obj === null) return '{}'
27+
2628

2729
let addComma = false
2830
let json = '{'

0 commit comments

Comments
 (0)