a7df69ec6df2651bc1eb07d96ba0db26a3673a00c7e70aa4ed819d186a5825b02b093e61fe0e186a20844a4619656457d78b6ee227323f2ab12dfdef55961f 298 B

123456789101112131415
  1. 'use strict';
  2. var test = {
  3. __proto__: null,
  4. foo: {}
  5. };
  6. // @ts-expect-error: TS errors on an inherited property for some reason
  7. var result = { __proto__: test }.foo === test.foo
  8. && !(test instanceof Object);
  9. /** @type {import('.')} */
  10. module.exports = function hasProto() {
  11. return result;
  12. };