aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-08-26 19:34:42 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-08-26 20:23:56 +0200
commit5bba54e8809a59013d29b681c6fb8d863ce78ec4 (patch)
tree1949f1dbdfa8da99480309b674ea08a5ab8507d0 /lib/stdlib
parentfd0dbac3df89f2064af698070b6bb54da0803424 (diff)
downloadotp-5bba54e8809a59013d29b681c6fb8d863ce78ec4.tar.gz
otp-5bba54e8809a59013d29b681c6fb8d863ce78ec4.tar.bz2
otp-5bba54e8809a59013d29b681c6fb8d863ce78ec4.zip
stdlib: Use environment bindings for Maps keys in erl_eval matching
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/erl_eval.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/erl_eval.erl b/lib/stdlib/src/erl_eval.erl
index 3cfedfee97..78682d8edc 100644
--- a/lib/stdlib/src/erl_eval.erl
+++ b/lib/stdlib/src/erl_eval.erl
@@ -1172,7 +1172,7 @@ match_tuple([], _, _, Bs, _BBs) ->
match_map([{map_field_exact, _, K, V}|Fs], Map, Bs0, BBs) ->
Vm = try
- {value, Ke, _} = expr(K, new_bindings()),
+ {value, Ke, _} = expr(K, Bs0),
maps:get(Ke,Map)
catch error:_ ->
throw(nomatch)