mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix null value check
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user