refactor(compiler-core): remove unnecessary arg in cached handler codegen
This commit is contained in:
@@ -209,7 +209,7 @@ export function render(_ctx, _cache) {
|
||||
return (_openBlock(), _createBlock(\\"div\\", null, [
|
||||
_createVNode(\\"div\\", null, [
|
||||
_createVNode(\\"div\\", {
|
||||
onClick: _cache[1] || (_cache[1] = ($event, ...args) => (_ctx.foo($event, ...args)))
|
||||
onClick: _cache[1] || (_cache[1] = (...args) => (_ctx.foo(...args)))
|
||||
})
|
||||
])
|
||||
]))
|
||||
|
||||
@@ -400,11 +400,7 @@ describe('compiler: transform v-on', () => {
|
||||
index: 1,
|
||||
value: {
|
||||
type: NodeTypes.COMPOUND_EXPRESSION,
|
||||
children: [
|
||||
`($event, ...args) => (`,
|
||||
{ content: `_ctx.foo($event, ...args)` },
|
||||
`)`
|
||||
]
|
||||
children: [`(...args) => (`, { content: `_ctx.foo(...args)` }, `)`]
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user