This commit is contained in:
bwstudio
2025-10-22 08:19:00 +08:00
parent 467b04e5b0
commit 97fbfe08d7
6040 changed files with 529099 additions and 9685 deletions
+15
View File
@@ -0,0 +1,15 @@
'use strict';
var test = {
__proto__: null,
foo: {}
};
// @ts-expect-error: TS errors on an inherited property for some reason
var result = { __proto__: test }.foo === test.foo
&& !(test instanceof Object);
/** @type {import('.')} */
module.exports = function hasProto() {
return result;
};