Skip to content

Commit

Permalink
[Fix] use a universal way to get the original Symbol
Browse files Browse the repository at this point in the history
Fixes #11
  • Loading branch information
ljharb committed Feb 27, 2021
1 parent 3000941 commit ddd3996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var origSymbol = global.Symbol;
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
var hasSymbolSham = require('./shams');

module.exports = function hasNativeSymbols() {
Expand Down

0 comments on commit ddd3996

Please sign in to comment.