Skip to content

Commit 6a39559

Browse files
authored
Update packages/svelte/src/internal/client/reactivity/props.js
1 parent 0fda425 commit 6a39559

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/reactivity/props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const rest_props_handler = {
4545
},
4646
set(target, key) {
4747
if (DEV) {
48-
throw new Error(`${target.name}.${String(key)} is readonly`);
48+
throw new Error(`Rest element properties of $props() such as ${target.name}.${String(key)} are readonly`);
4949
}
5050

5151
return false;

0 commit comments

Comments
 (0)