disable maps on R14, R15 and R16
This commit is contained in:
parent
a9a2c2ebe6
commit
8797ff6d9b
3 changed files with 2 additions and 14 deletions
|
@ -1 +0,0 @@
|
||||||
maps:keys(#{0 => false, 1 => true}) == [0,1].
|
|
|
@ -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'}
|
||||||
]}.
|
]}.
|
|
@ -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.
|
|
Loading…
Add table
Add a link
Reference in a new issue