1 /* eslint-disable es/no-symbol -- required for testing */
2 var V8_VERSION = require('../internals/engine-v8-version');
3 var fails = require('../internals/fails');
5 // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
6 module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
8 // Chrome 38 Symbol has incorrect toString conversion
9 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
10 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
11 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
12 !Symbol.sham && V8_VERSION && V8_VERSION < 41;