mirror of https://github.com/sveltejs/svelte
emit dev mode error for bad arguments to set - fixes #990
parent
d10f7fbdbf
commit
81f449093d
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
dev: true,
|
||||
|
||||
error(assert, error) {
|
||||
assert.equal(error.message, `<Main$>.set was called without an object of data key-values to update.`);
|
||||
}
|
||||
};
|
@ -0,0 +1,11 @@
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return { key : false };
|
||||
},
|
||||
|
||||
oncreate() {
|
||||
this.set("key", true);
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue