You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The :"foo bar" atom actually gets created. If adding existing_atoms_only, it fails:
iex>Code.string_to_quoted(~S(["foo bar 2": :baz]),static_atoms_encoder: fnx,_->{:ok,x}end,existing_atoms_only: true)**(ArgumentError)errorswerefoundatthegivenarguments:*1stargument: invalidUTF8encoding:erlang.binary_to_existing_atom("foo bar 2",:utf8)
Expected behavior
The encoder should be called on all static atoms and prevent atom leaks: