| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fc2b1ec commit dd00547
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -211,9 +211,8 @@ function getContextOptions(options) { | |||
| 211 | 211 | } | |
| 212 | 212 | ||
| 213 | 213 | function isContext(object) { | |
| 214 | - if (typeof object !== 'object' || object === null) { | ||
| 215 | - throw new ERR_INVALID_ARG_TYPE('object', 'Object', object); | ||
| 216 | - } | ||
| 214 | + validateObject(object, 'object', { allowArray: true }); | ||
| 215 | + | ||
| 217 | 216 | return _isContext(object); | |
| 218 | 217 | } | |
| 219 | 218 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments