disable maps on R14, R15 and R16

This commit is contained in:
alisdair sullivan 2014-12-09 14:41:30 -08:00
parent a9a2c2ebe6
commit 8797ff6d9b
3 changed files with 2 additions and 14 deletions

View file

@ -1 +0,0 @@
maps:keys(#{0 => false, 1 => true}) == [0,1].

View file

@ -1,6 +1,4 @@
% uncomment to disable encoding support for erlang maps
% {jsx_nomaps, true}.
{erl_opts, [ {erl_opts, [
{platform_define, "R14|R15", 'no_binary_to_whatever'} {platform_define, "R14|R15", 'no_binary_to_whatever'},
{platform_define, "^((?!R1[456]).)*$", 'maps_support'}
]}. ]}.

View file

@ -1,9 +0,0 @@
case os:getenv("JSX_NOMAPS") or proplists:get_value(jsx_nomaps, CONFIG, false) of
false ->
try file:script("config/maps") of
{ok, true} -> [{erl_opts, [{d, maps_support}]}] ++ CONFIG;
_ -> CONFIG
catch _:_ -> CONFIG
end;
_ -> CONFIG
end.