finish file server

This commit is contained in:
marlonerler
2024-07-04 16:11:02 +02:00
parent 8fa8bc6ed0
commit c97e3b5450
829 changed files with 143867 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
'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();
};