fix expected error position, tweak expected message to include suggested alternative

pull/1106/head
Rich Harris 8 years ago
parent cfdc8902ab
commit 146327e87f

@ -1,8 +1,8 @@
[{ [{
"message": "Computed property name \"hours-hyphen\" is invalid. Character '-' at position 14 is illegal in function identifiers", "message": "Computed property name 'hours-hyphen' is invalid — must be a valid identifier such as hours_hyphen",
"loc": { "loc": {
"line": 14, "line": 14,
"column": 6 "column": 3
}, },
"pos": 172 "pos": 150
}] }]

Loading…
Cancel
Save