Skip to content

Commit d6bea9a

Browse files
authored
Merge pull request #3764 from danpoe/fixes/enable-validation-of-symbol-table-read-from-json
Enable validation of symbol table read from JSON
2 parents 69b370c + af3d7f7 commit d6bea9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/json-symtab-language/json_symbol_table.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@ void symbol_table_from_json(const jsont &in, symbol_tablet &symbol_table)
4949
"symbol_table_from_json: duplicate symbol name `" +
5050
id2string(symbol.name) + "`");
5151
}
52+
53+
symbol_table.validate(validation_modet::EXCEPTION);
5254
}

0 commit comments

Comments
 (0)