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 3da5607 commit 9bdbf70Copy full SHA for 9bdbf70
1 file changed
test/common/index.js
@@ -522,7 +522,8 @@ function mustNotCall(msg) {
522
const _mustNotMutateProxies = new WeakMap();
523
524
function mustNotMutate(object) {
525
- if (object === null || typeof object !== 'object')
+ if (object === null ||
526
+ typeof object !== 'object' && typeof object !== 'function')
527
return object;
528
529
const cachedProxy = _mustNotMutateProxies.get(object);
0 commit comments