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 feature check #320

Merged
merged 2 commits into from
Mar 26, 2020
Merged

🐛fix feature check #320

merged 2 commits into from
Mar 26, 2020

Conversation

bcaudan
Copy link
Contributor

@bcaudan bcaudan commented Mar 26, 2020

  • array.include not supported on IE
  • ensure enableExperimentalFeatures is an array to avoid Object doesn't support property or method 'includes'

@bcaudan bcaudan requested a review from a team as a code owner March 26, 2020 15:23
@codecov-io
Copy link

codecov-io commented Mar 26, 2020

Codecov Report

Merging #320 into master will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #320      +/-   ##
==========================================
+ Coverage   81.92%   81.97%   +0.04%     
==========================================
  Files          26       26              
  Lines        1505     1509       +4     
  Branches      316      318       +2     
==========================================
+ Hits         1233     1237       +4     
  Misses        272      272              
Impacted Files Coverage Δ
packages/core/src/configuration.ts 96.96% <100.00%> (+0.41%) ⬆️
packages/rum/src/rum.entry.ts 71.15% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c438f8f...c1c31b2. Read the comment docs.

@bcaudan bcaudan force-pushed the bcaudan/fix-includes branch from 13a599b to 8f5329b Compare March 26, 2020 15:30
- array.include not supported on IE
- ensure enableExperimentalFeatures is an array to avoid `Object doesn't support property or method 'includes'`
@bcaudan bcaudan force-pushed the bcaudan/fix-includes branch from 8f5329b to c1c31b2 Compare March 26, 2020 15:31
Comment on lines 81 to 82
Array.isArray(configuration.enableExperimentalFeatures) &&
includes(configuration.enableExperimentalFeatures, feature)
Copy link
Member

Choose a reason for hiding this comment

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

It could be cleaner to not expose configuration.enableExperimentalFeatures and use userConfiguration directly here

Suggested change
Array.isArray(configuration.enableExperimentalFeatures) &&
includes(configuration.enableExperimentalFeatures, feature)
Array.isArray(userConfiguration.enableExperimentalFeatures) &&
includes(userConfiguration.enableExperimentalFeatures, feature)

@bcaudan bcaudan merged commit aa17607 into master Mar 26, 2020
@bcaudan bcaudan deleted the bcaudan/fix-includes branch March 26, 2020 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants