main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
420 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
---|
4 | var hasSymbolSham = require('./shams');
|
---|
5 |
|
---|
6 | module.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 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.