feige
2025-05-21 2b08f5948818994816b08dbe9ea9532286787e78
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';
 
// eslint-disable-next-line consistent-return
module.exports = function runSymbolTests(t) {
    t.equal(typeof Symbol, 'function', 'global Symbol is a function');
    t.ok(Symbol.toStringTag, 'Symbol.toStringTag exists');
 
    if (typeof Symbol !== 'function' || !Symbol.toStringTag) { return false; }
 
    var obj = {};
    obj[Symbol.toStringTag] = 'test';
 
    t.equal(Object.prototype.toString.call(obj), '[object test]');
};