Skip to content
Prev Previous commit
Next Next commit
lib: add missing null default value to validateObject
  • Loading branch information
anonrig committed Aug 16, 2022
commit 7364ab99fb1ffca398716ee7d5b866b32222045b
2 changes: 1 addition & 1 deletion lib/internal/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function getOwnPropertyValueOrDefault(options, key, defaultValue) {
* @param {{allowArray: boolean=, allowFunction: boolean=, nullable: boolean=}} [options]
*/
const validateObject = hideStackFrames(
(value, name, options) => {
(value, name, options = null) => {
const allowArray = getOwnPropertyValueOrDefault(options, 'allowArray', false);
const allowFunction = getOwnPropertyValueOrDefault(options, 'allowFunction', false);
const nullable = getOwnPropertyValueOrDefault(options, 'nullable', false);
Expand Down