aboutsummaryrefslogtreecommitdiffstats
path: root/backend/node_modules/has-symbols/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'backend/node_modules/has-symbols/index.js')
-rw-r--r--backend/node_modules/has-symbols/index.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/backend/node_modules/has-symbols/index.js b/backend/node_modules/has-symbols/index.js
new file mode 100644
index 0000000..17044fa
--- /dev/null
+++ b/backend/node_modules/has-symbols/index.js
@@ -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();
+};