remove TODO

pull/1056/merge
Rich Harris 7 years ago committed by GitHub
parent 1f234b1c35
commit 8b5dba9f4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,8 +6,6 @@ const disallowed = new Set(['Literal', 'ObjectExpression', 'ArrayExpression']);
export default function data(validator: Validator, prop: Node) {
while (prop.type === 'ParenthesizedExpression') prop = prop.expression;
// TODO should we disallow references and expressions as well?
if (disallowed.has(prop.value.type)) {
validator.error(`'data' must be a function`, prop.value.start);
}

Loading…
Cancel
Save