diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-03-11 14:50:46 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-03-17 17:47:35 +0100 |
commit | 90a948d7cf7f188b5461c2a7bb25a656ec681966 (patch) | |
tree | 9e114d1103136b6e85b6316726347a876ae127b7 /lib/compiler/src/core_parse.hrl | |
parent | c43dd2abaae653d5411fc662cad177c5971dde3b (diff) | |
download | otp-90a948d7cf7f188b5461c2a7bb25a656ec681966.tar.gz otp-90a948d7cf7f188b5461c2a7bb25a656ec681966.tar.bz2 otp-90a948d7cf7f188b5461c2a7bb25a656ec681966.zip |
compiler: Validate Map src
Reject all expressions that are known to fail.
Emit 'badarg' for those expressions.
Ex.
[]#{ a => 1}
Is not a valid map update expression.
Diffstat (limited to 'lib/compiler/src/core_parse.hrl')
-rw-r--r-- | lib/compiler/src/core_parse.hrl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/core_parse.hrl b/lib/compiler/src/core_parse.hrl index d54715ef59..094bbb8a71 100644 --- a/lib/compiler/src/core_parse.hrl +++ b/lib/compiler/src/core_parse.hrl @@ -103,5 +103,5 @@ val}). -record(c_map, {anno=[], - var=#c_literal{val=[]} :: #c_var{} | #c_literal{}, + var=#c_literal{val=#{}} :: #c_var{} | #c_literal{}, es :: [#c_map_pair{}]}). |