From 9a3358b35c54cad48fac38b3ab0714fc2f13cd60 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Mon, 18 Sep 2017 14:40:52 -0400 Subject: [PATCH] =?UTF-8?q?provide=20a=20default=20`opts`=20if=20it?= =?UTF-8?q?=E2=80=99s=20undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/jar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/jar.js b/src/lib/jar.js index 035d17afd..343a3befa 100644 --- a/src/lib/jar.js +++ b/src/lib/jar.js @@ -71,6 +71,7 @@ var Jar = { }); }, set: function (name, value, opts) { + opts = opts || {}; defaults(opts, { expires: new Date(new Date().setYear(new Date().getFullYear() + 1)) });