fix(v-on): proper member exp detection for bracket assignment

fix #4097
This commit is contained in:
Evan You
2021-07-15 13:26:09 -04:00
parent c0db807844
commit 395572b593
2 changed files with 6 additions and 5 deletions

View File

@@ -104,4 +104,5 @@ test('isMemberExpression', () => {
expect(isMemberExpression('a + b')).toBe(false)
expect(isMemberExpression('foo()')).toBe(false)
expect(isMemberExpression('a?b:c')).toBe(false)
expect(isMemberExpression(`state['text'] = $event`)).toBe(false)
})