You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mark an object as non-extensible by sealing or freezing it.
Try to mark it as raw using markRaw.
What is expected?
markRaw should just return the original object since it can't be changed (or observed) anyway. This is how it already works in Vue 2.7 and it makes sense to keep the same behavior here.
What is actually happening?
markRaw tries to define a new property on the object causing a TypeError.
Vue version
3.4.15
Link to minimal reproduction
https://play.vuejs.org/#eNp9kD9PwzAQxb+K5aWtVCVDtxIhAeoAA0WF0UtILsGp/8k+pxFRvju2Q0sH1O3uvd+d3t1IH4zJeg90SwtXWW6QOEBv7pni0miLZCSytMdDeSITaayWZBHwBVNM/erL/WcHFWaNBfiG5TitVndMFfm8LiwKDYI0okQIHSFFzXuSh7LIr3S6pugqrRreZp3TKiQaI81opaXhAuzeINfKMbolyYleKYQ+vSQNrYf1Wa++oDr+o3duiBqjbxYc2B4YvXhY2hZwtnfvrzCE+mJKXXsR6BvmAZwWPmacsUev6hD7iktpn9NfuWo/3G5AUO58VAwaySnxjIY/P904/S/uJtukOaYmOv0AgyybQQ==
Steps to reproduce
markRaw
.What is expected?
markRaw
should just return the original object since it can't be changed (or observed) anyway. This is how it already works in Vue 2.7 and it makes sense to keep the same behavior here.What is actually happening?
markRaw
tries to define a new property on the object causing a TypeError.System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: