Skip to content

Commit 6f473f9

Browse files
committed
Merge pull request #1251 from bettio/make-test_raw_raise-pass
Make `test_raw_raise` pass Accept `undefined` as stacktrace value. This might be changed in the future. See also #1247 These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 2753129 + 2813ce9 commit 6f473f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/erlang_tests/test_raw_raise.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ do_catch() ->
3030
_X -> 1
3131
catch
3232
error:{badarith, new_reason}:ST ->
33+
% TODO: verify if undefined is an acceptable value or an AtomVM only extension
34+
% See also issue #1247
3335
case ST of
3436
L when is_list(L) -> 0;
37+
undefined -> 0;
3538
_ -> 2
3639
end;
3740
_:_ ->

0 commit comments

Comments
 (0)