Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/is-finalizationregistry/index.js

    rd565449 r0c6b92a  
    33var callBound = require('call-bind/callBound');
    44
     5/** @type {undefined | ((value: ThisParameterType<typeof FinalizationRegistry.prototype.register>, ...args: Parameters<typeof FinalizationRegistry.prototype.register>) => ReturnType<typeof FinalizationRegistry.prototype.register>)} */
    56var $register = callBound('FinalizationRegistry.prototype.register', true);
    67
     8/** @type {import('.')} */
    79module.exports = $register
    810        ? function isFinalizationRegistry(value) {
     
    1113                }
    1214                try {
    13                         $register(value, {});
     15                        // @ts-expect-error TS can't figure out that it's always truthy here
     16                        $register(value, {}, null);
    1417                        return true;
    1518                } catch (e) {
     
    1720                }
    1821        }
     22        // @ts-ignore unused var
    1923        : function isFinalizationRegistry(value) { // eslint-disable-line no-unused-vars
    2024                return false;
Note: See TracChangeset for help on using the changeset viewer.