diff options
author | José Valim <[email protected]> | 2018-03-07 11:12:55 +0100 |
---|---|---|
committer | José Valim <[email protected]> | 2018-03-07 11:12:57 +0100 |
commit | a403cb1ed2cbab02fad23ac47b170dee1f22d7ec (patch) | |
tree | 836164d7d8638a96a3b640efff780aa9f3f17c08 /lib/debugger/test/int_eval_SUITE_data | |
parent | 7304c1e1deed6ac1fbddc88ea5c6d5138231dbf7 (diff) | |
download | otp-a403cb1ed2cbab02fad23ac47b170dee1f22d7ec.tar.gz otp-a403cb1ed2cbab02fad23ac47b170dee1f22d7ec.tar.bz2 otp-a403cb1ed2cbab02fad23ac47b170dee1f22d7ec.zip |
Do not treat binaries as top level in dbg_ieval
Prior to this change, calls inside binaries were
treated as top level which would cause the `Fun(Arg)`
call inside `<<Fun(Arg)/binary>>` to return an internal
dbg_ieval tuple and ultimately error with badarg.
Diffstat (limited to 'lib/debugger/test/int_eval_SUITE_data')
-rw-r--r-- | lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl b/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl index ca7929c10b..384d61f051 100644 --- a/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl +++ b/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl @@ -31,6 +31,7 @@ -export([f/1, f_try/1, f_catch/1]). -export([otp_5837/1, otp_8310/0]). -export([empty_map_update/1, update_in_fun/0]). +-export([call_inside_binary/1]). %% Internal exports. -export([echo/2,my_subtract/2,catch_a_ball/0,throw_a_ball/0]). @@ -248,3 +249,6 @@ empty_map_update(Map) -> Map#{}. update_in_fun() -> lists:map(fun (X) -> X#{price := 0} end, [#{hello => 0, price => nil}]). + +call_inside_binary(Fun) -> + <<(Fun(1))/binary>>. |