Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exavmlib: stub elixir_erl_pass.erl #1385

Open
petermm opened this issue Dec 5, 2024 · 0 comments
Open

exavmlib: stub elixir_erl_pass.erl #1385

petermm opened this issue Dec 5, 2024 · 0 comments

Comments

@petermm
Copy link
Contributor

petermm commented Dec 5, 2024

Elixir >=1.17 does runtime checks for soft deprecated map dot field access through elixir_erl_pass.erl - https://github.com/elixir-lang/elixir/blob/main/lib/elixir/src/elixir_erl_pass.erl

eg.

    test = %{a: 1, b: fn -> 42 end}

    IO.inspect("works if elixir_erl_pass:no_parens_remote/2 allowed: #{test.a}")
    IO.inspect("works if elixir_erl_pass:no_parens_remote/2 allowed: #{test.b.()}")

also test.a() will yield code using elixir_erl_pass:parens_map_field/2

shortterm fixed atomvm/exatomvm#36

Any pointers on including erl files in exavmlib?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant