test that events is an object literal

pull/942/head
Rich Harris 8 years ago
parent fa1d323f59
commit b9c80b8728

@ -9,7 +9,6 @@ export default function events(validator: Validator, prop: Node) {
`The 'events' property must be an object literal`,
prop.start
);
return;
}
checkForDupes(validator, prop.value.properties);

@ -0,0 +1,8 @@
[{
"message": "The 'events' property must be an object literal",
"loc": {
"line": 3,
"column": 2
},
"pos": 29
}]

@ -0,0 +1,5 @@
<script>
export default {
events: 'not an object literal'
};
</script>
Loading…
Cancel
Save