diff --git a/src/object.js b/src/object.js index e0bff5313..610f07982 100644 --- a/src/object.js +++ b/src/object.js @@ -248,7 +248,7 @@ ReflectionObject.prototype.setParsedOption = function setParsedOption(name, valu var features = parsedOptions.find(x => {return Object.prototype.hasOwnProperty.call(x, "features");}); this._proto_features = features.features || {}; } - + return this; }; diff --git a/src/parse.js b/src/parse.js index c999aa3ba..2da24976e 100644 --- a/src/parse.js +++ b/src/parse.js @@ -372,6 +372,7 @@ function parse(source, root, options) { case "required": if (edition) throw illegal(token); + break; case "repeated": parseField(type, token); break;