mirror of https://github.com/sveltejs/svelte
rune_invalid_arguments_length (#15516)
parent
aaeda65f2f
commit
32ee6c1bc2
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: throw rune_invalid_arguments_length when $state.raw() is used with more than 1 arg
|
@ -0,0 +1,8 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
error: {
|
||||
code: 'rune_invalid_arguments_length',
|
||||
message: '`$state.raw` must be called with zero or one arguments'
|
||||
}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
<script>
|
||||
const foo = $state.raw(1, 2, 3);
|
||||
</script>
|
@ -0,0 +1 @@
|
||||
const foo = $state.raw(1, 2, 3);
|
Loading…
Reference in new issue