File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/internal/client/proxy
tests/runtime-runes/samples
proxy-prop-default-readonly Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export function readonly(value) {
44
44
45
45
/** @returns {never } */
46
46
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:\`` ) ;
48
48
} ;
49
49
50
50
/** @type {ProxyHandler<StateObject<any>> } */
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ export default test({
14
14
assert . htmlEqual ( target . innerHTML , `<button>clicks: 0</button>` ) ;
15
15
} ,
16
16
17
- runtime_error : 'Props are read-only , unless used with `bind:`'
17
+ runtime_error : 'Props cannot be mutated , unless used with `bind:`'
18
18
} ) ;
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ export default test({
14
14
assert . htmlEqual ( target . innerHTML , `<button>clicks: 0</button>` ) ;
15
15
} ,
16
16
17
- runtime_error : 'Props are read-only , unless used with `bind:`'
17
+ runtime_error : 'Props cannot be mutated , unless used with `bind:`'
18
18
} ) ;
You can’t perform that action at this time.
0 commit comments