diff --git a/src/enum.js b/src/enum.js index 1c016209f..730b8e4dd 100644 --- a/src/enum.js +++ b/src/enum.js @@ -87,7 +87,7 @@ function Enum(name, values, options, comment, comments, valuesOptions) { * @throws {TypeError} If arguments are invalid */ Enum.fromJSON = function fromJSON(name, json) { - var enm = new Enum(name, json.values, json.options, json.comment, json.comments); + var enm = new Enum(name, json.values, json.options, json.comment, json.comments, json.valuesOptions); enm.reserved = json.reserved; return enm; };