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: crash on split #62

Merged
merged 3 commits into from
Jan 19, 2021
Merged

fix: crash on split #62

merged 3 commits into from
Jan 19, 2021

Conversation

alexander-akait
Copy link
Member

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

fixes #61

Breaking Changes

No

Additional Info

WIP on tests

@codecov
Copy link

codecov bot commented Jan 19, 2021

Codecov Report

Merging #62 (2bbb0ab) into master (d72a680) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #62   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          239       240    +1     
  Branches        65        66    +1     
=========================================
+ Hits           239       240    +1     
Impacted Files Coverage Δ
src/index.js 100.00% <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 d72a680...2bbb0ab. Read the comment docs.

@ricardogobbosouza
Copy link
Collaborator

I think we fixed it at the same time #63
/cc @alexander-akait

@alexander-akait
Copy link
Member Author

@ricardogobbosouza module.resource can be undefined + added tests

@alexander-akait
Copy link
Member Author

const [file] = String(undefined).split('?');
console.log(file); // undefined, but it is wrong

@alexander-akait
Copy link
Member Author

@ricardogobbosouza will you do release after merge or should I do it myself?

@ricardogobbosouza
Copy link
Collaborator

I'm doing

@alexander-akait
Copy link
Member Author

https://www.githubstatus.com/ 😞

@ricardogobbosouza ricardogobbosouza merged commit 2038c32 into master Jan 19, 2021
@alexander-akait alexander-akait deleted the issue-61 branch January 19, 2021 13:48
michaelangeliu pushed a commit to michaelangeliu/eslint-webpack-plugin that referenced this pull request Jan 22, 2021
* fix: crash on `split`

* test: added

* fix: webpack@4 tests
michaelangeliu pushed a commit to michaelangeliu/eslint-webpack-plugin that referenced this pull request Jan 22, 2021
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.

TypeError: Cannot read property 'split' of undefined
2 participants