Files
red-valley/nui-simulator/node_modules/has-symbols/index.js
Kotzu 319050b353 NUI-SIM
incercare de NUI-Offline Viewer ca sa nu mai intru in joc pt a vedea NUI-uri.
2026-03-30 01:40:16 +03: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();
};