Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix setChoices flow #730

Merged
merged 3 commits into from Nov 2, 2019
Merged

fix setChoices flow #730

merged 3 commits into from Nov 2, 2019

Conversation

tinovyatkin
Copy link
Contributor

@tinovyatkin tinovyatkin commented Oct 31, 2019

reimplements #721

// get polyfill settings from top level config
// @ts-ignore
const { settings } = require('../../../.eslintrc.json');

// Adding non-polyfilable Symbol-related functions as they are most probably
// behind the flag

settings.polyfills.push('Symbol.toStringTag', 'Symbol.for', 'Object.getOwnPropertySymbols', 'Object.getOwnPropertyDescriptors')
settings.polyfills.push(
'Symbol.toStringTag',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually use Symbol anywhere? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Your favorite Array.from is based on Symbol.Iterable 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But those here are due to webpack

@jshjohnson jshjohnson added the bugfix Pull request that fixes an existing bug label Nov 2, 2019
@jshjohnson jshjohnson merged commit 939a73b into Choices-js:master Nov 2, 2019
@tinovyatkin tinovyatkin deleted the fix-set-choices branch November 2, 2019 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request that fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants