From ddd3996ef628a9dc84e9f3561d26d7e3c801ff63 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 27 Feb 2021 08:29:49 -0800 Subject: [PATCH] [Fix] use a universal way to get the original Symbol Fixes #11 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f72159e..17044fa 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ 'use strict'; -var origSymbol = global.Symbol; +var origSymbol = typeof Symbol !== 'undefined' && Symbol; var hasSymbolSham = require('./shams'); module.exports = function hasNativeSymbols() {