We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9eec6f8 + df4ca01 commit 1ccc454Copy full SHA for 1ccc454
src/parse/read/context.ts
@@ -57,6 +57,7 @@ export default function readContext(parser: Parser) {
57
58
errorOnAssignmentPattern(parser);
59
parser.eat(']', true);
60
+ context.end = parser.index;
61
}
62
63
else if (parser.eat('{')) {
@@ -95,6 +96,7 @@ export default function readContext(parser: Parser) {
95
96
97
98
parser.eat('}', true);
99
100
101
102
else {
test/parser/samples/each-block-destructured/output.json
@@ -55,7 +55,7 @@
55
],
56
"context": {
"start": 18,
- "end": null,
+ "end": 30,
"type": "ArrayPattern",
"elements": [
{
0 commit comments