A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue-next/issues/3581 below:

Ref sugar compile result incorrect with destructuring + arrow function expression · Issue #3581 · vuejs/core · GitHub

Version

3.0.11

Reproduction link

https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbnJlZjogKHt9ID0gKCkgPT4gMSk7XG5yZWY6ICh7fSA9IHVzZVNvbXRoaW5nKCgpID0+IDEpKTtcbnJlZjogKHt9ID0gdXNlU29tdGhpbmcoY29tcHV0ZWQoKCkgPT4gMSkpKTtcbjwvc2NyaXB0PiJ9

Steps to reproduce

Check the JS compile result.

What is expected?

Result is:

const {} = (() => 1);
const {} = useSomthing((() => 1));
const {} = useSomthing(computed((() => 1)));
What is actually happening?

Result is:

const {} = ( => 1);
const {} = useSomthing(( => 1));
const {} = useSomthing(computed(( => 1)));

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4