Vue version
3.2.47
Link to minimal reproduction
https://codepen.io/leaverou/pen/MWPpEQg?editors=1011
Steps to reproduce
Visit testcase
What is expected?
1 in Result pane
What is actually happening?
Error
System Info
Any additional comments?
Apparently proxies break private class fields (MDN, non-Vue testcase). This means that every time an instance of a class using private fields is used as the value of a Vue property, things break (see testcase). Since there is a workaround that can be used in the proxy traps, I'd consider this a Vue bug.
Vue was mentioned several times in tc39/proposal-class-fields#106 , so I'd be surprised if this is not known, but I couldn't find an existing issue, so opening this just in case.
Vue version
3.2.47
Link to minimal reproduction
https://codepen.io/leaverou/pen/MWPpEQg?editors=1011
Steps to reproduce
Visit testcase
What is expected?
1 in Result pane
What is actually happening?
Error
System Info
Any additional comments?
Apparently proxies break private class fields (MDN, non-Vue testcase). This means that every time an instance of a class using private fields is used as the value of a Vue property, things break (see testcase). Since there is a workaround that can be used in the proxy traps, I'd consider this a Vue bug.
Vue was mentioned several times in tc39/proposal-class-fields#106 , so I'd be surprised if this is not known, but I couldn't find an existing issue, so opening this just in case.