Skip to content

Commit 1d1a0f7

Browse files
committed
lib.coerce: allow flaglist with no extras
1 parent ba77f5b commit 1d1a0f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/coerce.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ exports.valObjects = {
192192
propOut.set(dflt);
193193
return;
194194
}
195-
if(opts.extras.indexOf(v) !== -1) {
195+
if((opts.extras || []).indexOf(v) !== -1) {
196196
propOut.set(v);
197197
return;
198198
}

0 commit comments

Comments
 (0)