diff options
author | John Högberg <john@erlang.org> | 2021-10-19 20:18:51 +0200 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2021-11-10 14:09:03 +0100 |
commit | 3346acf491bf33267242f9100bd32da92f090d44 (patch) | |
tree | ad2d9db42f0dd46ca0224d80fb2fadf07caa4eec /lib/debugger | |
parent | 35260af8b0ad8ca7901febabbb510d0b4f03db68 (diff) | |
download | erlang-3346acf491bf33267242f9100bd32da92f090d44.tar.gz |
stdlib: Optimize fun usage
Hoisting the fun check outside these loops lets us skip error
checks on the fun calls themselves, which is very nice for
functions like foldl/3.
Diffstat (limited to 'lib/debugger')
-rw-r--r-- | lib/debugger/test/fun_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debugger/test/fun_SUITE.erl b/lib/debugger/test/fun_SUITE.erl index 7eb53e4ce4..962c54f22a 100644 --- a/lib/debugger/test/fun_SUITE.erl +++ b/lib/debugger/test/fun_SUITE.erl @@ -289,7 +289,7 @@ eep37(Config) when is_list(Config) -> 10 = Add(9), 50 = UnusedName(8), [1,1,2,6,24,120] = lists:map(F, lists:seq(0, 5)), - {'EXIT',{{badarity,_},_}} = (catch lists:map(fun G() -> G() end, [1])), + {'EXIT',{function_clause,_}} = (catch lists:map(fun G() -> G() end, [1])), {'EXIT',{{badarity,_},_}} = (catch F()), ok. |