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(compiler-core): should not prefix an object property key when val… #1375

Merged
merged 2 commits into from
Jun 15, 2020

Conversation

underfin
Copy link
Member

…ue is function

fix #1373

test('should not prefix an object property key', () => {
const node = parseWithExpressionTransform(
`{{ { foo: bar } }}`
`{{ { foo() { baz() }, value: bar } }}`
Copy link
Member

Choose a reason for hiding this comment

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

Note only foo() {} syntax results in ObjectMethod type, foo: () => {} is still considered ObjectProperty so original test case was incorrect.

@yyx990803 yyx990803 merged commit 35dbef2 into vuejs:master Jun 15, 2020
@underfin underfin deleted the fix-js-expression branch June 16, 2020 01:09
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.

[Compiler] Methods in object literals
2 participants