Merge pull request #5841 from lilyinstarlight/fix-fromtoml-attrs

Sort attrs from tables in fromTOML
This commit is contained in:
Eelco Dolstra 2021-12-29 00:03:10 +01:00 committed by GitHub
commit ed3bc63666
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,6 +31,8 @@ static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Va
auto & v2 = *state.allocAttr(v, state.symbols.create(elem.first)); auto & v2 = *state.allocAttr(v, state.symbols.create(elem.first));
visit(v2, elem.second); visit(v2, elem.second);
} }
v.attrs->sort();
} }
break;; break;;
case toml::value_t::array: case toml::value_t::array: