Skip to content

fix(warn): do not warn when destructuring in v-for #7097

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

Closed
wants to merge 2 commits into from

Conversation

posva
Copy link
Member

@posva posva commented Nov 21, 2017

Fixes #7096
Right now tests do not pass because PhantomJS do not support destructuring syntax. I'm taking a look to replace it by something better

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

@posva
Copy link
Member Author

posva commented Nov 21, 2017

Using headless chrome make 6 Transition tests fail 🙁
Regular Chrome passes

PhantomJS does not support the destructuring syntax and therefore do not
make the tests pass. Using ChromeHeadless works but break 6 transition
tests. Regular Chrome works fine.
@posva
Copy link
Member Author

posva commented Nov 21, 2017

So, I skipped the tests and added a note to make the PR mergeable.
I added a TODO comment so we don't forget to activate back the tests once we use something else

@posva posva requested a review from yyx990803 November 21, 2017 12:35
@yyx990803
Copy link
Member

I didn't notice the PR while working on the fix, sorry! 🙇

@yyx990803 yyx990803 closed this Nov 21, 2017
@posva posva deleted the fix/7096 branch November 21, 2017 14:23
@posva
Copy link
Member Author

posva commented Nov 21, 2017

No worries!

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.

[2.5.7] Object destructuring within v-for gives "invalid v-for alias" error
2 participants