Files
med-notes/.pnpm-store/v10/files/79/01cd9d142ebf0ed9c5bca03b0a080368cdcf166be784d37885c6245a7423a7617cd68bff8eb2ad4c31d93553fd32fc2f5c5dbe972b0282fe279d5c0b23b886
2025-06-26 03:35:15 +00:00

30 lines
760 B
Plaintext

'use strict';
var test = require('tape');
if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
test('has native Symbol support', function (t) {
t.equal(typeof Symbol, 'function');
t.equal(typeof Symbol(), 'symbol');
t.end();
});
// @ts-expect-error TS is stupid and doesn't know about top level return
return;
}
var hasSymbols = require('../../shams');
test('polyfilled Symbols', function (t) {
/* eslint-disable global-require */
t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling');
require('get-own-property-symbols');
require('../tests')(t);
var hasSymbolsAfter = hasSymbols();
t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling');
/* eslint-enable global-require */
t.end();
});