mirror of https://github.com/sveltejs/svelte
breaking: prevent usage of arguments keyword in certain places (#12191)
* breaking: prevent usage of arguments keyword in certain places * build * build * Update packages/svelte/messages/compile-errors/script.md Co-authored-by: Rich Harris <rich.harris@vercel.com> * build * build * lint --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/12195/head
parent
09479c4fe9
commit
23484d6875
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
breaking: prevent usage of arguments keyword in certain places
|
@ -0,0 +1,9 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
error: {
|
||||||
|
code: 'invalid_arguments_usage',
|
||||||
|
message:
|
||||||
|
'The arguments keyword cannot be used within the template or at the top level of a component'
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1,3 @@
|
|||||||
|
<script>
|
||||||
|
arguments
|
||||||
|
</script>
|
Loading…
Reference in new issue