Files
screeps-deploy-action/node_modules/has-symbols/index.js
Philipp Horstenkamp acfdeab164
Some checks failed
Lint / pre-commit Linting (push) Has been cancelled
npm install + git add -a
2025-12-16 01:08:09 +01:00

15 lines
447 B
JavaScript

'use strict';
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
var hasSymbolSham = require('./shams');
/** @type {import('.')} */
module.exports = function hasNativeSymbols() {
if (typeof origSymbol !== 'function') { return false; }
if (typeof Symbol !== 'function') { return false; }
if (typeof origSymbol('foo') !== 'symbol') { return false; }
if (typeof Symbol('bar') !== 'symbol') { return false; }
return hasSymbolSham();
};