Skip to content

Commit 2c568d7

Browse files
authored
avoid implicit conversion of null in serializer (#609)
1 parent c83cc32 commit 2c568d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/serializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = class Serializer {
5454
if (Number.isNaN(num)) {
5555
throw new Error(`The value "${i}" cannot be converted to a number.`)
5656
} else if (!Number.isFinite(num)) {
57-
return null
57+
return 'null'
5858
} else {
5959
return '' + num
6060
}

0 commit comments

Comments
 (0)