Skip to content

Commit

Permalink
Merge pull request #369 from ieQu1/master
Browse files Browse the repository at this point in the history
Fix persistent_term:get/1 builtin.
  • Loading branch information
aronisstav authored Dec 20, 2024
2 parents 56a7fd7 + 75e5d02 commit b420511
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/concuerror_callback.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,8 @@ run_built_in(persistent_term, Name, Arity, Args, Info) ->
{erase, 1} ->
run_built_in(ets, delete, 2, [?persistent_term|Args], Info);
{get, 1} ->
run_built_in(ets, lookup_element, 3, [?persistent_term, 2|Args], Info);
[Key] = Args,
run_built_in(ets, lookup_element, 3, [?persistent_term, Key, 2], Info);
{get, 2} ->
[Key, Default] = Args,
{R, NewInfo} =
Expand Down

0 comments on commit b420511

Please sign in to comment.