]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix snapshot
authorEvan You <yyx990803@gmail.com>
Tue, 1 Dec 2020 14:21:39 +0000 (09:21 -0500)
committerEvan You <yyx990803@gmail.com>
Tue, 1 Dec 2020 14:21:39 +0000 (09:21 -0500)
packages/compiler-core/__tests__/transforms/__snapshots__/hoistStatic.spec.ts.snap

index 0bdbb5e712612c7f483cfb2516378e07c3a683f4..003c4c63a16393d8244f3b33d9dd41153bb6a26f 100644 (file)
@@ -209,7 +209,7 @@ export function render(_ctx, _cache) {
   return (_openBlock(), _createBlock(\\"div\\", null, [
     _createVNode(\\"div\\", null, [
       _createVNode(\\"div\\", {
-        onClick: _cache[1] || (_cache[1] = (...args) => (_ctx.foo(...args)))
+        onClick: _cache[1] || (_cache[1] = (...args) => (_ctx.foo && _ctx.foo(...args)))
       })
     ])
   ]))