Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/has-symbols/test/tests.js

    r0c6b92a r79a0317  
    11'use strict';
    22
     3/** @type {(t: import('tape').Test) => false | void} */
    34// eslint-disable-next-line consistent-return
    45module.exports = function runSymbolTests(t) {
     
    3233        t.equal(typeof Object.getOwnPropertySymbols, 'function', 'Object.getOwnPropertySymbols is a function');
    3334
     35        /** @type {{ [k in symbol]?: unknown }} */
    3436        var obj = {};
    3537        var sym = Symbol('test');
     
    4143        var symVal = 42;
    4244        obj[sym] = symVal;
    43         // eslint-disable-next-line no-restricted-syntax
    44         for (sym in obj) { t.fail('symbol property key was found in for..in of object'); }
     45        // eslint-disable-next-line no-restricted-syntax, no-unused-vars
     46        for (var _ in obj) { t.fail('symbol property key was found in for..in of object'); }
    4547
    4648        t.deepEqual(Object.keys(obj), [], 'no enumerable own keys on symbol-valued object');
Note: See TracChangeset for help on using the changeset viewer.