We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.0.0-beta.15
https://vue-next-template-explorer.netlify.app/#%7B%22src%22%3A%22%3Cdiv%20v-x%3D%5C%22%7B%20a%3A%201%2C%20b()%20%7B%20%7D%7D%5C%22%3E%3C%2Fdiv%3E%22%2C%22options%22%3A%7B%22mode%22%3A%22module%22%2C%22prefixIdentifiers%22%3Afalse%2C%22optimizeBindings%22%3Afalse%2C%22hoistStatic%22%3Afalse%2C%22cacheHandlers%22%3Afalse%2C%22scopeId%22%3Anull%7D%7D
The compiler produces invalid content if you create an object literal with the method shorthand syntax, such as this:
<div v-x="{ a: 1, b() { hello() } }"></div>
v-x compiles to the expression: { a: 1, b() { _ctx.hello() } }
v-x
{ a: 1, b() { _ctx.hello() } }
Compiles to the following, which is invalid: { a: 1, _ctx.b() { _ctx.hello() } }
{ a: 1, _ctx.b() { _ctx.hello() } }
The text was updated successfully, but these errors were encountered:
fix(compiler-core): should not prefix an object property key when val…
97ee51d
…ue is function fix vuejs#1373
Wow less than 30 min. from open issue to merged fix. You're amazing guys! 🥇
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Version
3.0.0-beta.15
Reproduction link
https://vue-next-template-explorer.netlify.app/#%7B%22src%22%3A%22%3Cdiv%20v-x%3D%5C%22%7B%20a%3A%201%2C%20b()%20%7B%20%7D%7D%5C%22%3E%3C%2Fdiv%3E%22%2C%22options%22%3A%7B%22mode%22%3A%22module%22%2C%22prefixIdentifiers%22%3Afalse%2C%22optimizeBindings%22%3Afalse%2C%22hoistStatic%22%3Afalse%2C%22cacheHandlers%22%3Afalse%2C%22scopeId%22%3Anull%7D%7D
Steps to reproduce
The compiler produces invalid content if you create an object literal with the method shorthand syntax, such as this:
What is expected?
v-x
compiles to the expression:{ a: 1, b() { _ctx.hello() } }
What is actually happening?
Compiles to the following, which is invalid:
{ a: 1, _ctx.b() { _ctx.hello() } }
The text was updated successfully, but these errors were encountered: