Make tests spec compliant by avoiding duplicate declarations in input files#9522
Merged
danez merged 1 commit intobabel:masterfrom Feb 19, 2019
danez:spec-update-tests
Merged
Make tests spec compliant by avoiding duplicate declarations in input files#9522danez merged 1 commit intobabel:masterfrom danez:spec-update-tests
danez merged 1 commit intobabel:masterfrom
danez:spec-update-tests
Conversation
danez
commented
Feb 16, 2019
| () => _supercall(); | ||
| `, | ||
| { methodName: "constructor" }, | ||
| { methodName: "constructor", extend: true }, |
Member
Author
There was a problem hiding this comment.
I think extend: true was missing here and not left out on purpose, even though all other tests in this file use it correctly.
super call requires the class to extend another class, so this would throw when #9493 gets merged
Collaborator
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/10171/ |
danez
commented
Feb 16, 2019
| @@ -1 +0,0 @@ | |||
| function null() { } | |||
Member
Author
There was a problem hiding this comment.
danez
commented
Feb 16, 2019
| @@ -1 +0,0 @@ | |||
| function true() { } | |||
Member
Author
There was a problem hiding this comment.
danez
commented
Feb 16, 2019
| @@ -1 +0,0 @@ | |||
| function false() { } | |||
Member
Author
There was a problem hiding this comment.
danez
commented
Feb 16, 2019
| @@ -1 +0,0 @@ | |||
| function if() { } | |||
Member
Author
There was a problem hiding this comment.
Member
|
You renamed a lot of function declarations: it doesn't really matter, but they can be duplicated, right? |
Member
Author
|
in some cases yes, i just renamed all duplication in tests that were failing |
nicolo-ribaudo
approved these changes
Feb 17, 2019
existentialism
approved these changes
Feb 18, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This does NOT change any real code, only test fixtures are change.
This changes make sure there are no duplicate declarations in any of the
input.m?jsfiles. I extracted this from #9493 as it can be already added independently and makes the review of #9493 easier.For reviewing here the important part is that I did not change the meaning of any test by renaming stuff. This is the reason
import type, { imp } from "";was extracted into a separate file as it collides withimport type from "";, but renamingtypeto something else would probably change the meaning.There is some additional fixes see inline comments.