Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ada7d82

Browse filesBrowse files
Trottdanielleadams
authored andcommitted
lib: require JSDoc in internal validators code
Closes: #44893 PR-URL: #44896 Fixes: #44893 Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent b6b9c42 commit ada7d82
Copy full SHA for ada7d82

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Collapse file

‎lib/internal/validators.js‎

Copy file name to clipboardExpand all lines: lib/internal/validators.js
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint jsdoc/require-jsdoc: "error" */
2+
13
'use strict';
24

35
const {
@@ -217,6 +219,12 @@ function validateBoolean(value, name) {
217219
throw new ERR_INVALID_ARG_TYPE(name, 'boolean', value);
218220
}
219221

222+
/**
223+
* @param {?object} options
224+
* @param {string} key
225+
* @param {boolean} defaultValue
226+
* @returns {boolean}
227+
*/
220228
function getOwnPropertyValueOrDefault(options, key, defaultValue) {
221229
return options == null || !ObjectPrototypeHasOwnProperty(options, key) ?
222230
defaultValue :

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.