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