Files
ZERO_CODE/ZeroCodeProject/main/client/node_modules/has-proto/index.js
vermouth789 fe39320977 123
123
2026-01-11 00:11:34 +08:00

16 lines
302 B
JavaScript

'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);
};