<div dir="ltr">The following example does not work:<div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>-module(foo).</div></div><div><div>-compile(export_all).</div></div><div><div>
<br></div></div><div><div>bar() -></div></div><div><div> (some:code(<<"hello">>))#{name => <<"world">>}.</div></div></blockquote><div><div><div><br></div><div>With the following error:</div>
<div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><div>foo.erl: internal error in core_module;</div></div></div></div><div><div><div><div>crash reason: badarg</div></div>
</div></div><div><div><div><div><br></div></div></div></div><div><div><div><div> in function lists:member/2</div></div></div></div><div><div><div><div> called as lists:member(big,default)</div></div></div></div><div>
<div><div><div> in call from v3_core:verify_suitable_fields/1 (v3_core.erl, line 805)</div></div></div></div><div><div><div><div> in call from v3_core:constant_bin_1/1 (v3_core.erl, line 788)</div></div></div></div><div>
<div><div><div> in call from v3_core:constant_bin/1 (v3_core.erl, line 782)</div></div></div></div><div><div><div><div> in call from v3_core:expr_bin/3 (v3_core.erl, line 766)</div></div></div></div><div><div><div><div>
in call from v3_core:expr/2 (v3_core.erl, line 508)</div></div></div></div><div><div><div><div> in call from v3_core:safe/2 (v3_core.erl, line 1407)</div></div></div></div><div><div><div><div> in call from v3_core:expr/2 (v3_core.erl, line 483)</div>
</div></div></div></blockquote><div><div><div><br></div><div>I am assuming the binaries on the left hand side of the update operator are not being normalized, that's why we are attempting lists:member(big, default), where "default" was supposed to be replaced by the normalized binary values.</div>
<div><br></div><div>Thank you!</div><div><br></div><div><span style="font-size:13px"><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b>José Valim</b></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><div>
<span style="font-family:verdana,sans-serif;font-size:x-small"><a href="http://www.plataformatec.com.br/" style="color:rgb(42,93,176)" target="_blank">www.plataformatec.com.br</a></span></div><div><span style="font-family:verdana,sans-serif;font-size:x-small">Skype: jv.ptec</span></div>
<div><span style="font-family:verdana,sans-serif;font-size:x-small">Founder and Lead Developer</span></div></span></div></span></div></div>
</div></div>