Skip to content

Commit b275787

Browse files
committed
Trap ET_INVALID
fix CC#1756 Without this commit: >> reduce reduce [:self] REBOL system error #1101 Program terminated abnormally This should never happen With this commit: >> reduce reduce [:self] ** Script error: frame! has no value ** Where: reduce ** Near: reduce reduce [:self]
1 parent 700ad41 commit b275787

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/c-do.c

+4
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,10 @@ x*/ static REBINT Do_Args_Light(REBVAL *func, REBVAL *path, REBSER *block, REBCN
968968
case ET_END:
969969
return END_FLAG;
970970

971+
case ET_INVALID:
972+
Trap1(RE_NO_VALUE, value);
973+
break;
974+
971975
default:
972976
//Debug_Fmt("Bad eval: %d %s", VAL_TYPE(value), Get_Type_Name(value));
973977
Crash(RP_BAD_EVALTYPE, VAL_TYPE(value));

0 commit comments

Comments
 (0)