Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/is-finalizationregistry/index.js
rd565449 r0c6b92a 3 3 var callBound = require('call-bind/callBound'); 4 4 5 /** @type {undefined | ((value: ThisParameterType<typeof FinalizationRegistry.prototype.register>, ...args: Parameters<typeof FinalizationRegistry.prototype.register>) => ReturnType<typeof FinalizationRegistry.prototype.register>)} */ 5 6 var $register = callBound('FinalizationRegistry.prototype.register', true); 6 7 8 /** @type {import('.')} */ 7 9 module.exports = $register 8 10 ? function isFinalizationRegistry(value) { … … 11 13 } 12 14 try { 13 $register(value, {}); 15 // @ts-expect-error TS can't figure out that it's always truthy here 16 $register(value, {}, null); 14 17 return true; 15 18 } catch (e) { … … 17 20 } 18 21 } 22 // @ts-ignore unused var 19 23 : function isFinalizationRegistry(value) { // eslint-disable-line no-unused-vars 20 24 return false;
Note:
See TracChangeset
for help on using the changeset viewer.