add end position to object and array patterns

pull/1674/head
James Birtles 6 years ago
parent 9eec6f8c72
commit bbe5319f3b

@ -57,6 +57,7 @@ export default function readContext(parser: Parser) {
errorOnAssignmentPattern(parser);
parser.eat(']', true);
context.end = parser.index;
}
else if (parser.eat('{')) {
@ -95,6 +96,7 @@ export default function readContext(parser: Parser) {
errorOnAssignmentPattern(parser);
parser.eat('}', true);
context.end = parser.index;
}
else {

Loading…
Cancel
Save