Changeset 79a0317 for imaps-frontend/node_modules/has-symbols/test/tests.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/has-symbols/test/tests.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 /** @type {(t: import('tape').Test) => false | void} */ 3 4 // eslint-disable-next-line consistent-return 4 5 module.exports = function runSymbolTests(t) { … … 32 33 t.equal(typeof Object.getOwnPropertySymbols, 'function', 'Object.getOwnPropertySymbols is a function'); 33 34 35 /** @type {{ [k in symbol]?: unknown }} */ 34 36 var obj = {}; 35 37 var sym = Symbol('test'); … … 41 43 var symVal = 42; 42 44 obj[sym] = symVal; 43 // eslint-disable-next-line no-restricted-syntax 44 for ( symin 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'); } 45 47 46 48 t.deepEqual(Object.keys(obj), [], 'no enumerable own keys on symbol-valued object');
Note:
See TracChangeset
for help on using the changeset viewer.