node_modules/has-proto/index.js in immosquare-cleaner-0.1.32 vs node_modules/has-proto/index.js in immosquare-cleaner-0.1.38
- old
+ new
@@ -1,11 +1,15 @@
'use strict';
var test = {
+ __proto__: null,
foo: {}
};
var $Object = Object;
+/** @type {import('.')} */
module.exports = function hasProto() {
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
+ // @ts-expect-error: TS errors on an inherited property for some reason
+ return { __proto__: test }.foo === test.foo
+ && !(test instanceof $Object);
};