med-notes/.pnpm-store/v10/files/10/1509bb54f17db5dcfbdd1313c3229011fc2f15e05f342dbc8cc08823f2cb7f51bd862d38208f0d74e1ec1add2d94450386f327949ba9722b35766f5a2447c5
2025-06-26 04:42:51 +00:00

16 lines
532 B
Plaintext

'use strict';
// eslint-disable-next-line consistent-return
module.exports = /** @type {(t: import('tape').Test) => void | false} */ 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; }
/** @type {{ [Symbol.toStringTag]?: 'test'}} */
var obj = {};
obj[Symbol.toStringTag] = 'test';
t.equal(Object.prototype.toString.call(obj), '[object test]');
};