diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/find.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/find.js b/src/find.js index c8edce98..716aca5e 100644 --- a/src/find.js +++ b/src/find.js @@ -69,7 +69,7 @@ function findHelper({ // errors for null matches (with details about the error), while 'warn' and // 'quiet' both return null, with 'warn' logging details directly to the // console. - return (fullRef, data, {mode = 'warn'}) => { + return (fullRef, data, {mode = 'warn'} = {}) => { if (!fullRef) return null; if (typeof fullRef !== 'string') { throw new TypeError(`Expected a string, got ${typeAppearance(fullRef)}`); |