ShakedAp 155968209a Created the simple html app using node.js
Created index.html, the main html page
Created index.js, the html server
Added packages and settings
2023-06-24 13:45:18 +03:00

14 lines
420 B
JavaScript

'use strict';
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
var hasSymbolSham = require('./shams');
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();
};