Skip to content

Commit 23064b1

Browse files
committed
tweak message
1 parent fce95f0 commit 23064b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/svelte/src/internal/client/proxy/readonly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function readonly(value) {
4444

4545
/** @returns {never} */
4646
const readonly_error = () => {
47-
throw new Error(`Props are read-only, unless used with \`bind:\``);
47+
throw new Error(`Props cannot be mutated, unless used with \`bind:\``);
4848
};
4949

5050
/** @type {ProxyHandler<StateObject<any>>} */

packages/svelte/tests/runtime-runes/samples/proxy-prop-default-readonly/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ export default test({
1414
assert.htmlEqual(target.innerHTML, `<button>clicks: 0</button>`);
1515
},
1616

17-
runtime_error: 'Props are read-only, unless used with `bind:`'
17+
runtime_error: 'Props cannot be mutated, unless used with `bind:`'
1818
});

packages/svelte/tests/runtime-runes/samples/proxy-prop-readonly/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ export default test({
1414
assert.htmlEqual(target.innerHTML, `<button>clicks: 0</button>`);
1515
},
1616

17-
runtime_error: 'Props are read-only, unless used with `bind:`'
17+
runtime_error: 'Props cannot be mutated, unless used with `bind:`'
1818
});

0 commit comments

Comments
 (0)