Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
709 bytes
|
Line | |
---|
1 | /* eslint-disable es/no-symbol -- required for testing */
|
---|
2 | var V8_VERSION = require('../internals/engine-v8-version');
|
---|
3 | var fails = require('../internals/fails');
|
---|
4 |
|
---|
5 | // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
---|
6 | module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
---|
7 | var symbol = Symbol();
|
---|
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;
|
---|
13 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.