• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3var origSymbol = global.Symbol;
4var hasSymbolSham = require('./shams');
5
6module.exports = function hasNativeSymbols() {
7	if (typeof origSymbol !== 'function') { return false; }
8	if (typeof Symbol !== 'function') { return false; }
9	if (typeof origSymbol('foo') !== 'symbol') { return false; }
10	if (typeof Symbol('bar') !== 'symbol') { return false; }
11
12	return hasSymbolSham();
13};
14