Changeset 79a0317 for imaps-frontend/node_modules/has-proto/index.js
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/has-proto/index.js
r0c6b92a r79a0317 6 6 }; 7 7 8 var $Object = Object; 8 // @ts-expect-error: TS errors on an inherited property for some reason 9 var result = { __proto__: test }.foo === test.foo 10 && !(test instanceof Object); 9 11 10 12 /** @type {import('.')} */ 11 13 module.exports = function hasProto() { 12 // @ts-expect-error: TS errors on an inherited property for some reason 13 return { __proto__: test }.foo === test.foo 14 && !(test instanceof $Object); 14 return result; 15 15 };
Note:
See TracChangeset
for help on using the changeset viewer.