fix null value check

This commit is contained in:
Shelley Vohr 2017-11-03 08:47:21 -04:00
parent 2b2c7d7f9f
commit 803fa35484
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -40,7 +40,7 @@ function wrapArgs (args, visited = new Set()) {
type: 'date', type: 'date',
value: value.getTime() value: value.getTime()
} }
} else if (value && typeof value === 'object') { } else if ((value != null) && typeof value === 'object') {
if (isPromise(value)) { if (isPromise(value)) {
return { return {
type: 'promise', type: 'promise',