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

Fix persistent_term:get/1 builtin. #369

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

ieQu1
Copy link
Contributor

@ieQu1 ieQu1 commented Dec 19, 2024

Summary

Prior to this fix the mock for that function would fail with badarg because it was translated to
ets:lookup_element(?persistent_term, 2, Key) instead of
ets:lookup_element(?persistent_term, Key, 2).

https://www.erlang.org/doc/apps/stdlib/ets.html#lookup_element/3

Checklist

  • Has tests (or doesn't need them)
  • Updates CHANGELOG (or too minor)
  • References related Issues

Prior to this fix the mock for that function would fail
with `badarg' because it was translated to
`ets:lookup_element(?persistent_term, 2, Key)' instead of
`ets:lookup_element(?persistent_term, Key, 2)'.
@aronisstav aronisstav merged commit b420511 into parapluu:master Dec 20, 2024
16 checks passed
@aronisstav
Copy link
Member

Thanks for the fix!

@ieQu1
Copy link
Contributor Author

ieQu1 commented Dec 20, 2024

Thank you too for writing this awesome tool.

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

Successfully merging this pull request may close these issues.

2 participants