From 803fa35484302b9ffc5de499bd21288471dc406e Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Fri, 3 Nov 2017 08:47:21 -0400 Subject: [PATCH] fix null value check --- lib/renderer/api/remote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/renderer/api/remote.js b/lib/renderer/api/remote.js index 01a30c44d6c..a4f8072ed57 100644 --- a/lib/renderer/api/remote.js +++ b/lib/renderer/api/remote.js @@ -40,7 +40,7 @@ function wrapArgs (args, visited = new Set()) { type: 'date', value: value.getTime() } - } else if (value && typeof value === 'object') { + } else if ((value != null) && typeof value === 'object') { if (isPromise(value)) { return { type: 'promise',