diff options
Diffstat (limited to 'lib/dgram.js')
-rw-r--r-- | lib/dgram.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dgram.js b/lib/dgram.js index b38aa39c21..cb20c4499a 100644 --- a/lib/dgram.js +++ b/lib/dgram.js @@ -91,8 +91,9 @@ function Socket(type, listener) { let recvBufferSize; let sendBufferSize; + let options; if (type !== null && typeof type === 'object') { - var options = type; + options = type; type = options.type; lookup = options.lookup; recvBufferSize = options.recvBufferSize; |