diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-05-12 16:36:59 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-05-12 16:36:59 +0200 |
commit | c563f5866b42a3479050241284fffc1245aebe7d (patch) | |
tree | 8289c9cd9fb5ec561a8eea25ed56f26a87234d61 /lib/debugger/src/dbg_ieval.erl | |
parent | 441c5a4dbc01e33db11b9497c14927da1af896f6 (diff) | |
parent | ec15a2aaab58816c728676807c0b6e61d5a5185e (diff) | |
download | otp-c563f5866b42a3479050241284fffc1245aebe7d.tar.gz otp-c563f5866b42a3479050241284fffc1245aebe7d.tar.bz2 otp-c563f5866b42a3479050241284fffc1245aebe7d.zip |
Merge branch 'nox/fix-eval-map-update/OTP-11922' into maint
* nox/fix-eval-map-update/OTP-11922:
Fix evaluation of map updates in the debugger and erl_eval
Diffstat (limited to 'lib/debugger/src/dbg_ieval.erl')
-rw-r--r-- | lib/debugger/src/dbg_ieval.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/debugger/src/dbg_ieval.erl b/lib/debugger/src/dbg_ieval.erl index 0653ce4c00..77297de0f3 100644 --- a/lib/debugger/src/dbg_ieval.erl +++ b/lib/debugger/src/dbg_ieval.erl @@ -665,11 +665,11 @@ expr({map,Line,E0,Fs0}, Bs0, Ieval0) -> {value,E,Bs1} = expr(E0, Bs0, Ieval), case E of #{} -> - {Fs,Bs2} = eval_map_fields(Fs0, Bs1, Ieval), + {Fs,Bs2} = eval_map_fields(Fs0, Bs0, Ieval), Value = lists:foldl(fun ({map_assoc,K,V}, Mi) -> maps:put(K,V,Mi); ({map_exact,K,V}, Mi) -> maps:update(K,V,Mi) end, E, Fs), - {value,Value,Bs2}; + {value,Value,merge_bindings(Bs2, Bs1, Ieval)}; _ -> exception(error, {badarg,E}, Bs1, Ieval) end; |