change error message for invalid bindings

pull/605/head
Rich Harris 8 years ago
parent 2a92b36472
commit d752959ef1

@ -104,7 +104,7 @@ export function readBindingDirective ( parser: Parser, start: number, name: stri
value = parseExpressionAt( source, a );
if ( value.type !== 'Identifier' && value.type !== 'MemberExpression' ) {
parser.error( `Expected valid property name` );
parser.error( `Cannot bind to rvalue`, value.start );
}
parser.allowWhitespace();

@ -0,0 +1,8 @@
{
"message": "Cannot bind to rvalue",
"pos": 19,
"loc": {
"line": 1,
"column": 19
}
}
Loading…
Cancel
Save