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

Turn namespace assignment error into a warning #3633

Merged
merged 2 commits into from Jun 13, 2020

Conversation

guybedford
Copy link
Contributor

Similarly to #3475 this turns the static error into a warning that will become a runtime error only on the execution paths that actually attempt it.

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

@rollup-bot
Copy link
Collaborator

rollup-bot commented Jun 13, 2020

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#warn-namespace-reassignment

or load it into the REPL:
https://rollupjs.org/repl/?circleci=11934

@codecov
Copy link

codecov bot commented Jun 13, 2020

Codecov Report

Merging #3633 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3633   +/-   ##
=======================================
  Coverage   96.53%   96.54%           
=======================================
  Files         183      183           
  Lines        6242     6244    +2     
  Branches     1830     1830           
=======================================
+ Hits         6026     6028    +2     
  Misses        107      107           
  Partials      109      109           
Impacted Files Coverage Δ
src/ast/nodes/MemberExpression.ts 98.30% <100.00%> (+0.02%) ⬆️

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 d613137...d433eda. Read the comment docs.

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

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

Looks good, just one minor comment.

src/ast/nodes/MemberExpression.ts Outdated Show resolved Hide resolved
@lukastaegert lukastaegert merged commit 2cf243a into master Jun 13, 2020
@lukastaegert lukastaegert deleted the warn-namespace-reassignment branch June 13, 2020 19:41
@guybedford
Copy link
Contributor Author

guybedford commented Jun 14, 2020 via email

@lukastaegert
Copy link
Member

In that case I would suggest #3637

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.

None yet

3 participants