core icon indicating copy to clipboard operation
core copied to clipboard

fix(compiler-core): No access `this` through function declaration in <script setup>

Open godxiaoji opened this issue 3 years ago • 5 comments

fix #6822

godxiaoji avatar Oct 06 '22 04:10 godxiaoji

Could you please add unit tests of the issue?

Case added. Thanks.

godxiaoji avatar Oct 06 '22 08:10 godxiaoji

@posva This PR is true to fix - it will fail in both dev and prod mode.

sxzz avatar Oct 06 '22 13:10 sxzz

You are right, I was a bit too fast on reading that .bind()

posva avatar Oct 06 '22 14:10 posva