We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc2b1ec commit dd00547Copy full SHA for dd00547
lib/vm.js
@@ -211,9 +211,8 @@ function getContextOptions(options) {
211
}
212
213
function isContext(object) {
214
- if (typeof object !== 'object' || object === null) {
215
- throw new ERR_INVALID_ARG_TYPE('object', 'Object', object);
216
- }
+ validateObject(object, 'object', { allowArray: true });
+
217
return _isContext(object);
218
219
0 commit comments