Urara-Blog/node_modules/.pnpm-store/v3/files/b2/9f5647cb3b92a0c806d451037fc3b71a1651b97555487eb7d255fade7c303eb19d8419748932ba2cc2c7e39948cd1141832eefd4070cd3d757941136412c59
2022-08-14 01:14:53 +08:00

28 lines
813 B
Text

'use strict';
var test = require('tape');
if (typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol') {
test('has native Symbol.toStringTag support', function (t) {
t.equal(typeof Symbol, 'function');
t.equal(typeof Symbol.toStringTag, 'symbol');
t.end();
});
return;
}
var hasSymbolToStringTag = require('../../shams');
test('polyfilled Symbols', function (t) {
/* eslint-disable global-require */
t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
require('core-js/fn/symbol');
require('core-js/fn/symbol/to-string-tag');
require('../tests')(t);
var hasToStringTagAfter = hasSymbolToStringTag();
t.equal(hasToStringTagAfter, true, 'hasSymbolToStringTag is true after polyfilling');
/* eslint-enable global-require */
t.end();
});