diff options
author | Zandra <[email protected]> | 2015-12-28 12:08:05 +0100 |
---|---|---|
committer | Zandra <[email protected]> | 2015-12-28 12:08:05 +0100 |
commit | 4f2d5c08a08e25e9b5b1b2011a8efe2fea441049 (patch) | |
tree | 69026df11b94903d60694e9e8d93191351b094b6 /lib/stdlib/src/erl_eval.erl | |
parent | 60d310117c005d6a05dcfc729b79a174b44e5370 (diff) | |
parent | c0c2f6a204d83ee89cd179b0a6d5996e248539e5 (diff) | |
download | otp-4f2d5c08a08e25e9b5b1b2011a8efe2fea441049.tar.gz otp-4f2d5c08a08e25e9b5b1b2011a8efe2fea441049.tar.bz2 otp-4f2d5c08a08e25e9b5b1b2011a8efe2fea441049.zip |
Merge branch 'josevalim/jv-map-fun-eval-maint' into maint
* josevalim/jv-map-fun-eval-maint:
Use full list of bindings when matching on map keys
OTP-13218
Diffstat (limited to 'lib/stdlib/src/erl_eval.erl')
-rw-r--r-- | lib/stdlib/src/erl_eval.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/erl_eval.erl b/lib/stdlib/src/erl_eval.erl index ca3cc43b19..568eb1c852 100644 --- a/lib/stdlib/src/erl_eval.erl +++ b/lib/stdlib/src/erl_eval.erl @@ -1184,7 +1184,7 @@ match_tuple([], _, _, Bs, _BBs) -> match_map([{map_field_exact, _, K, V}|Fs], Map, Bs0, BBs) -> Vm = try - {value, Ke, _} = expr(K, Bs0), + {value, Ke, _} = expr(K, BBs), maps:get(Ke,Map) catch error:_ -> throw(nomatch) |