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 6c69c73 commit 08d2f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core-js/internals/native-symbol.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var fails = require('../internals/fails');

// Chrome 38 Symbol has incorrect toString conversion
module.exports = !fails(function () {
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
// Chrome 38 Symbol has incorrect toString conversion
// eslint-disable-next-line no-undef
return !String(Symbol());
});

0 comments on commit 08d2f56

Please sign in to comment.