From fad098244642100e5054dedefed9da905b24aedc Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Tue, 3 Mar 2020 10:01:06 +0100 Subject: [PATCH] JSON RangeError when parsing GeoJSON. Fixes microsoft/vscode#91854 --- src/parser/jsonParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/jsonParser.ts b/src/parser/jsonParser.ts index 1cc0d996..c87c62cd 100644 --- a/src/parser/jsonParser.ts +++ b/src/parser/jsonParser.ts @@ -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);