Skip to content

Commit

Permalink
remove TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Dec 30, 2017
1 parent 1f234b1 commit 8b5dba9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/validate/js/propValidators/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8b5dba9

Please sign in to comment.