Skip to content

Commit

Permalink
JSON RangeError when parsing GeoJSON. Fixes microsoft/vscode#91854
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Mar 3, 2020
1 parent 567db79 commit fad0982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/jsonParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class SchemaCollector implements ISchemaCollector {
this.schemas.push(schema);
}
merge(other: ISchemaCollector) {
this.schemas.push(...other.schemas);
Array.prototype.push.apply(this.schemas, other.schemas);
}
include(node: ASTNode) {
return (this.focusOffset === -1 || contains(node, this.focusOffset)) && (node !== this.exclude);
Expand Down

0 comments on commit fad0982

Please sign in to comment.