Correctly skip unexpected mappings
This commit is contained in:
@@ -133,7 +133,7 @@ class TemplateReader {
|
|||||||
else {
|
else {
|
||||||
this._context.error(mapping, "A mapping was not expected");
|
this._context.error(mapping, "A mapping was not expected");
|
||||||
|
|
||||||
while (this._objectReader.allowMappingEnd()) {
|
while (!this._objectReader.allowMappingEnd()) {
|
||||||
this.skipValue();
|
this.skipValue();
|
||||||
this.skipValue();
|
this.skipValue();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user