Skip to content

Commit

Permalink
add an additional check of native Symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed May 20, 2019
1 parent ada1588 commit 34eb949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/es6.symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var SymbolRegistry = shared('symbol-registry');
var AllSymbols = shared('symbols');
var OPSymbols = shared('op-symbols');
var ObjectProto = Object[PROTOTYPE];
var USE_NATIVE = typeof $Symbol == 'function';
var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
var QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
Expand Down

0 comments on commit 34eb949

Please sign in to comment.