mirror of https://github.com/sveltejs/svelte
parent
e17e5e78bc
commit
695a309567
@ -1,9 +0,0 @@
|
|||||||
import { test } from '../../test';
|
|
||||||
|
|
||||||
export default test({
|
|
||||||
error: {
|
|
||||||
code: 'invalid-props-mutation',
|
|
||||||
message:
|
|
||||||
'Properties defined by $props() cannot be mutated. Use $props.bindable() instead, or make a copy of the value and reassign it.'
|
|
||||||
}
|
|
||||||
});
|
|
@ -1,4 +0,0 @@
|
|||||||
<script>
|
|
||||||
let { x } = $props();
|
|
||||||
x.y = 1;
|
|
||||||
</script>
|
|
Loading…
Reference in new issue