first commit

This commit is contained in:
2024-04-18 09:30:05 +05:30
commit ee5c224767
809 changed files with 93350 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
'use strict';
var test = {
__proto__: null,
foo: {}
};
var $Object = Object;
/** @type {import('.')} */
module.exports = function hasProto() {
// @ts-expect-error: TS errors on an inherited property for some reason
return { __proto__: test }.foo === test.foo
&& !(test instanceof $Object);
};