Skip to content

Commit 63d2070

Browse files
authored
pre-compute empty string (#573)
1 parent 23dc29d commit 63d2070

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
@@ -90,7 +90,7 @@ module.exports = class Serializer {
9090
if (str instanceof Date) {
9191
return quotes + str.toISOString() + quotes
9292
} else if (str === null) {
93-
return quotes + quotes
93+
return '""'
9494
} else if (str instanceof RegExp) {
9595
str = str.source
9696
} else if (typeof str !== 'string') {

0 commit comments

Comments
 (0)